Skip to content

Commit

Permalink
Layout voor mobiele/kleine schermen verbeteren #901
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissiemensma committed Feb 27, 2020
1 parent b5133e2 commit 84055f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dsmr_frontend/templates/dsmr_frontend/statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.highest_usage_l1_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.highest_usage_l1_timestamp }}</span>
<span class="unit">{{ electricity_statistics.highest_usage_l1_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -168,7 +168,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.highest_usage_l2_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.highest_usage_l2_timestamp }}</span>
<span class="unit">{{ electricity_statistics.highest_usage_l2_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -180,7 +180,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.highest_usage_l3_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.highest_usage_l3_timestamp }}</span>
<span class="unit">{{ electricity_statistics.highest_usage_l3_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -193,7 +193,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.lowest_usage_l1_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.lowest_usage_l1_timestamp }}</span>
<span class="unit">{{ electricity_statistics.lowest_usage_l1_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
<br>
</tr>
Expand All @@ -206,7 +206,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.lowest_usage_l2_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.lowest_usage_l2_timestamp }}</span>
<span class="unit">{{ electricity_statistics.lowest_usage_l2_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -218,7 +218,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.lowest_usage_l3_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.lowest_usage_l3_timestamp }}</span>
<span class="unit">{{ electricity_statistics.lowest_usage_l3_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -231,7 +231,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.highest_return_l1_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.highest_return_l1_timestamp }}</span>
<span class="unit">{{ electricity_statistics.highest_return_l1_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -243,7 +243,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.highest_return_l2_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.highest_return_l2_timestamp }}</span>
<span class="unit">{{ electricity_statistics.highest_return_l2_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand All @@ -255,7 +255,7 @@
<i class="fas fa-bolt"></i> {{ electricity_statistics.highest_return_l3_value }} {% trans "Watt" %}
</span>
<br>
<span class="unit">{{ electricity_statistics.highest_return_l3_timestamp }}</span>
<span class="unit">{{ electricity_statistics.highest_return_l3_timestamp|date:'DSMR_STATISTICS_DATETIME_FORMAT' }}</span>
</td>
</tr>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions dsmrreader/formats/en/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
DSMR_DATEPICKER_MONTH = 'F Y'

DSMR_EXPORT_DATETIME_FORMAT = 'Y-m-d H:i:s'
DSMR_STATISTICS_DATETIME_FORMAT = 'l F jS Y \\a\\t g:i a'

DJANGO_DATE_FORMAT = 'Y-m-d'
1 change: 1 addition & 0 deletions dsmrreader/formats/nl/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
DSMR_DATEPICKER_MONTH = 'F Y'

DSMR_EXPORT_DATETIME_FORMAT = 'd-m-Y H:i:s'
DSMR_STATISTICS_DATETIME_FORMAT = 'l j F Y \o\m G:i'

DJANGO_DATE_FORMAT = 'd-m-Y'

0 comments on commit 84055f2

Please sign in to comment.