-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
4f53a32
commit 82fb9bc
Showing
4 changed files
with
54 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 36 additions & 23 deletions
59
dsmr_frontend/templates/dsmr_frontend/fragments/live-header-include.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
{% load i18n %} | ||
{% load l10n %} | ||
|
||
<th class="col-sm-6"> | ||
<span id="tariff_name"></span> | ||
<br> | ||
|
||
<span> | ||
<a class="help-trigger" href="#"><small><i class="fas fa-question-circle"></i></small></a> | ||
<small class="xhr-hidden"> | ||
{% blocktranslate %}Based on the latest telegram received, no matter if it's still unprocessed.{% endblocktranslate %} | ||
</small> | ||
</span> | ||
<span class="unit" id="latest_timestamp"><i class="fas fa-circle-notch fa-spin fa-fw"></i></span> | ||
</th> | ||
<th class="col-sm-4"> | ||
{% if capabilities.electricity %} | ||
<span class="badge bg-red" id="latest_electricity"><i class="fas fa-circle-notch fa-spin fa-fw"></i></span> | ||
<span class="badge bg-green" id="latest_electricity_returned"></span> | ||
<span class="unit">{% translate "W" %}</span> | ||
{% endif %} | ||
</th> | ||
<th class="col-sm-2"> | ||
{% if capabilities.electricity %} | ||
<span class="xhr-hidden badge bg-black" id="cost_per_hour"></span> <span class="unit">€{% translate '/hour' %}</span> | ||
{% endif %} | ||
</th> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<div class="panel"> | ||
<div class="panel-body"> | ||
<table class="table table-hover"> | ||
<tr class="live-header"> | ||
<th class="col-sm-6"> | ||
<span id="tariff_name"></span> | ||
<br> | ||
|
||
<span> | ||
<a class="help-trigger" href="#"><small><i class="fas fa-question-circle"></i></small></a> | ||
<small class="xhr-hidden"> | ||
{% blocktranslate %}Based on the latest telegram received, no matter if it's still unprocessed.{% endblocktranslate %} | ||
</small> | ||
</span> | ||
<span class="unit" id="latest_timestamp"><i class="fas fa-circle-notch fa-spin fa-fw"></i></span> | ||
</th> | ||
<th class="col-sm-4"> | ||
{% if capabilities.electricity %} | ||
<span class="badge bg-red" id="latest_electricity"><i class="fas fa-circle-notch fa-spin fa-fw"></i></span> | ||
<span class="badge bg-green" id="latest_electricity_returned"></span> | ||
<span class="unit">{% translate "W" %}</span> | ||
{% endif %} | ||
</th> | ||
<th class="col-sm-2"> | ||
{% if capabilities.electricity %} | ||
<span class="xhr-hidden badge bg-black" id="cost_per_hour"></span> <span class="unit">€{% translate '/hour' %}</span> | ||
{% endif %} | ||
</th> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters