Added new information to the dashboard
This commit is contained in:
parent
52d9e6488c
commit
b74cfbac9e
@ -57,6 +57,7 @@
|
|||||||
<strong>{{ selected_year }}</strong>
|
<strong>{{ selected_year }}</strong>
|
||||||
{% if selected_month %}/<strong>{{ selected_month }}</strong>{% endif %}
|
{% if selected_month %}/<strong>{{ selected_month }}</strong>{% endif %}
|
||||||
</p>
|
</p>
|
||||||
|
<p>Comparado con el periodo inmediatamente anterior</p>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
@ -86,16 +87,23 @@
|
|||||||
{% if compare_enabled %}
|
{% if compare_enabled %}
|
||||||
<section class="kpi compare">
|
<section class="kpi compare">
|
||||||
<h3>Comparación con periodo anterior</h3>
|
<h3>Comparación con periodo anterior</h3>
|
||||||
|
|
||||||
<p>
|
{% if kpi_previous_total == 0 %}
|
||||||
Total anterior: <strong>{{ kpi_previous_total|floatformat:2 }}</strong>
|
<p><em>No hay datos en el periodo anterior</em></p>
|
||||||
</p>
|
{% else %}
|
||||||
|
<p>
|
||||||
|
Total anterior: <strong>{{ kpi_previous_total|floatformat:2 }}</strong>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Diferencia:
|
Diferencia:
|
||||||
{% if kpi_difference > 0 %}
|
{% if kpi_difference > 0 %}
|
||||||
<span>▲</span>
|
<span>▲</span>
|
||||||
{% elif kpi_difference < 0 %}
|
{% elif kpi_difference < 0 %}
|
||||||
<span>▼</span>
|
<span>▼</span>
|
||||||
|
{% else %}
|
||||||
|
<span>=</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<strong>{{ kpi_difference|floatformat:2 }}</strong>
|
<strong>{{ kpi_difference|floatformat:2 }}</strong>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user