diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-23 12:42:55 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-26 11:25:16 +0200 |
| commit | 440038531ae041a4800b11921197616c34f577f2 (patch) | |
| tree | 8e6b609f0b9f64885cf718a14f44468054941aa2 /ishtar_common/templates/index.html | |
| parent | 8a3db7ab932730fb78a093ba4820cee5939bb805 (diff) | |
| download | Ishtar-440038531ae041a4800b11921197616c34f577f2.tar.bz2 Ishtar-440038531ae041a4800b11921197616c34f577f2.zip | |
✨ homepage: statistics and more customizations
Diffstat (limited to 'ishtar_common/templates/index.html')
| -rw-r--r-- | ishtar_common/templates/index.html | 23 |
1 files changed, 22 insertions, 1 deletions
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 %}<div id="welcome" class="container">{% if homepage %}{{homepage|safe}}{% else %}{% include "welcome.html" %}{% endif %}</div>{% endblock %} +{% block content %}<div id="welcome" class="container"> + <h2>{% if welcome_title %}{{welcome_title}}{% else %}{% trans "Welcome in Ishtar, open source software for management and inventory of archaeological data" %}{% endif %}</h2> + <div class="row"> + {% if display_random_image %} + {{random_image}} + {% endif %} + <div class="col col-lg-9"> + <div class="card"> + <div class="card-body"> + {% if homepage %}{{homepage|safe}}{% else %}{% include "welcome.html" %}{% endif %} + </div> + </div> + </div> + {% if display_statistics %} + <div class="col col-lg-12 lead mt-4"> + {% for label, number in statistics %} + <span class="badge badge-secondary">{{label}} <span class="badge badge-light">{{number}}</span></span> + {% endfor %} + </div> + {% endif %} + </div> +</div>{% endblock %} |
