File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
dsmr_frontend/templates/dsmr_frontend Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ v3.12.0 - 2020-07-10
14
14
15
15
- [`#1036 <https://github.com/dennissiemensma/dsmr-reader/issues/1036 >`_] Deprecate API support for Status
16
16
- [`#1037 <https://github.com/dennissiemensma/dsmr-reader/issues/1037 >`_] Laatste v3.x release
17
+ - [`#1034 <https://github.com/dennissiemensma/dsmr-reader/issues/1034 >`_] Live weergave en live teller wijken af
17
18
18
19
19
20
----
Original file line number Diff line number Diff line change 46
46
< tr class ="live-header ">
47
47
< th class ="col-sm-6 ">
48
48
< span id ="latest_timestamp "> < i class ="fas fa-circle-notch fa-spin fa-fw "> </ i > </ span > < span class ="unit " id ="tariff_name "> </ span >
49
+
50
+ < span >
51
+ < a class ="help-trigger " href ="# "> < small > < i class ="fas fa-question-circle "> </ i > </ small > </ a >
52
+ < small class ="xhr-hidden ">
53
+ {% blocktrans %}Based on the latest telegram received, no matter if it's still unprocessed.{% endblocktrans %}
54
+ </ small >
55
+ </ span >
49
56
</ th >
50
57
< th class ="col-sm-2 ">
51
58
{% if capabilities.electricity %}
187
194
188
195
< script type ="text/javascript " src ="{% static 'dsmr_frontend/js/dsmr-reader/consumption-header.js' %}?r=v{{ dsmr_version }} "> </ script >
189
196
< script type ="text/javascript ">
197
+ $ ( ".help-trigger" ) . click ( function ( ) {
198
+ $ ( this ) . next ( ) . show ( ) ;
199
+ $ ( this ) . remove ( ) ;
200
+ return false ;
201
+ } ) ;
202
+
190
203
var xhr_consumption_header_url = "{% url 'frontend:xhr-consumption-header' %}" ;
191
204
192
205
$ ( document ) . ready ( function ( ) {
Original file line number Diff line number Diff line change 28
28
< tr class ="live-header ">
29
29
< th class ="col-sm-6 ">
30
30
< span id ="latest_timestamp "> < i class ="fas fa-circle-notch fa-spin fa-fw "> </ i > </ span > < span class ="unit " id ="tariff_name "> </ span >
31
+
32
+ < span >
33
+ < a class ="help-trigger " href ="# "> < small > < i class ="fas fa-question-circle "> </ i > </ small > </ a >
34
+ < small class ="xhr-hidden ">
35
+ {% blocktrans %}Based on the latest electricity consumption processed.{% endblocktrans %}
36
+ </ small >
37
+ </ span >
31
38
</ th >
32
39
< th class ="col-sm-2 ">
33
40
{% if capabilities.electricity %}
236
243
/* Reload entire page after 15 minutes. */
237
244
setInterval ( function ( ) { location . reload ( ) ; } , 15 * 60 * 1000 )
238
245
} ) ;
246
+
247
+ $ ( ".help-trigger" ) . click ( function ( ) {
248
+ $ ( this ) . next ( ) . show ( ) ;
249
+ $ ( this ) . remove ( ) ;
250
+ return false ;
251
+ } ) ;
239
252
</ script >
240
253
241
254
{% endblock %}
You can’t perform that action at this time.
0 commit comments