From 440038531ae041a4800b11921197616c34f577f2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 23 Sep 2024 12:42:55 +0200 Subject: ✨ homepage: statistics and more customizations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/index.html | 23 ++++++++++++++++++++++- ishtar_common/templates/welcome.html | 26 ++++++++------------------ 2 files changed, 30 insertions(+), 19 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/index.html b/ishtar_common/templates/index.html index c86413380..d1000396a 100644 --- a/ishtar_common/templates/index.html +++ b/ishtar_common/templates/index.html @@ -1,3 +1,24 @@ {% extends "base.html" %} {% load i18n %} -{% block content %}
{% if homepage %}{{homepage|safe}}{% else %}{% include "welcome.html" %}{% endif %}
{% endblock %} +{% block content %}
+

{% if welcome_title %}{{welcome_title}}{% else %}{% trans "Welcome in Ishtar, open source software for management and inventory of archaeological data" %}{% endif %}

+
+ {% if display_random_image %} + {{random_image}} + {% endif %} +
+
+
+ {% if homepage %}{{homepage|safe}}{% else %}{% include "welcome.html" %}{% endif %} +
+
+
+ {% if display_statistics %} +
+ {% for label, number in statistics %} + {{label}}  {{number}} + {% endfor %} +
+ {% endif %} +
+
{% endblock %} diff --git a/ishtar_common/templates/welcome.html b/ishtar_common/templates/welcome.html index c6ee5c81f..c5d21cecc 100644 --- a/ishtar_common/templates/welcome.html +++ b/ishtar_common/templates/welcome.html @@ -1,20 +1,10 @@ {% load i18n %} -

{% trans "Welcome in Ishtar, open source software for management and inventory of archaeological data" %}

-
- {{random_image}} -
-
-
-

{% trans "Some useful links:" %}

- -
-
-
-
+

{% trans "Some useful links:" %}

+ -- cgit v1.2.3