From b4d3b7d7d8a994f636c16697f245ac14d7a3f547 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 30 Sep 2020 19:05:12 +0200 Subject: Stats: generation on demand --- .../templates/ishtar/sheet_container.html | 22 ++++++++++++++++++---- .../templates/ishtar/sheet_warehouse.html | 19 ++++++++++++++++++- 2 files changed, 36 insertions(+), 5 deletions(-) (limited to 'archaeological_warehouse/templates') diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html index 336684bc8..7ca39645d 100644 --- a/archaeological_warehouse/templates/ishtar/sheet_container.html +++ b/archaeological_warehouse/templates/ishtar/sheet_container.html @@ -154,7 +154,23 @@ role="tabpanel" aria-labelledby="{{window_id}}-stats-tab">

{% trans "Statistics" %}

- {% trans "These numbers are updated hourly" %} +
+
+ + {% with item.last_stats_update as last_stats_update%} + {% if last_stats_update %} + {% trans "Last update:" %} {{last_stats_update}} + {% endif %}{% endwith %} +
+
{% if not item.number_containers and not item.number_divisions %}
@@ -188,10 +204,8 @@ {% endif %} {% endfor %} -

{% trans "Containers" %}

- {% if item.number_of_containers_by_place %} -

{% trans "Containers by location in the warehouse" %}

+

{% trans "Containers by location" %}

{% for items in item.number_of_containers_by_place %} {% if items %}

{% trans "Statistics" %}

- {% trans "These numbers are updated hourly" %} + +
+
+ + {% with item.last_stats_update as last_stats_update%} + {% if last_stats_update %} + {% trans "Last update:" %} {{last_stats_update}} + {% endif %}{% endwith %} +
+
{% if not item.number_containers and not item.number_divisions %}
-- cgit v1.2.3