Skip to content

Commit 10c226c

Browse files
"All time low" implementeren #535
1 parent a7b7e4b commit 10c226c

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

dsmr_frontend/templates/dsmr_frontend/statistics.html

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
<section class="content">
1212
{% if not capabilities.any %}
1313
<div class="alert alert-danger" role="alert">
14-
<span class="fas fa-exclamation fa-2x"></span> {% blocktrans %}No data found. Please make sure the datalogger is up and running and the backend process is running as well.{% endblocktrans %}
15-
</div>
14+
<span class="fas fa-exclamation fa-2x"></span> {% blocktrans %}No data found. Please make sure the datalogger is up and running and the backend process is running as well.{% endblocktrans %}</div>
1615
{% endif %}
1716

1817
{% if capabilities.any %}
@@ -156,14 +155,15 @@
156155
</div>
157156
</div>
158157

159-
{% if electricity_statistics %}
160158
<div class="row">
161159
<div class="col-md-12">
162160
<div class="panel">
163161
<header class="panel-heading">
164-
{% trans "All time highs" %}
162+
{% trans "All time highs & lows" %}
165163
</header>
166164
<div class="panel-body">
165+
166+
{% if electricity_statistics and datalogger_settings.track_phases %}
167167
<table class="table table-condensed">
168168
{% if electricity_statistics.highest_usage_l1_value %}
169169
<tr>
@@ -267,11 +267,13 @@
267267
</tr>
268268
{% endif %}
269269
</table>
270+
{% else %}
271+
<small>{% blocktrans %}Enable "Track electricity phases" in the Datalogger Configuration to track this data.{% endblocktrans %}</small>
272+
{% endif %}
270273
</div>
271274
</div>
272275
</div>
273276
</div>
274-
{% endif %}
275277

276278
{% endif %}
277279

262 Bytes
Binary file not shown.

dsmrreader/locales/nl/LC_MESSAGES/django.po

+5-2
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ msgstr "Het aantal P1 DSMR telegram-metingen die opgeslagen zijn."
838838
msgid "Show"
839839
msgstr "Toon"
840840

841-
msgid "All time highs"
842-
msgstr "Allertijden records"
841+
msgid "All time highs & lows"
842+
msgstr "Hoogte- en laagte records"
843843

844844
msgid "Highest usage (L1+)"
845845
msgstr "Hoogste verbruik (L1+)"
@@ -868,6 +868,9 @@ msgstr "Hoogste teruglevering (L2-)"
868868
msgid "Highest return (L3-)"
869869
msgstr "Hoogste teruglevering (L3-)"
870870

871+
msgid "Enable \"Track electricity phases\" in the Datalogger Configuration to track this data."
872+
msgstr "Vink \"Houd elektriciteitsfasen bij\" aan, in de Dataloggerconfiguratie, om deze gegevens bij te houden. "
873+
871874
msgid "Current energy prices"
872875
msgstr "Huidige energietarieven"
873876

0 commit comments

Comments
 (0)