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 | |
parent | 8a3db7ab932730fb78a093ba4820cee5939bb805 (diff) | |
download | Ishtar-440038531ae041a4800b11921197616c34f577f2.tar.bz2 Ishtar-440038531ae041a4800b11921197616c34f577f2.zip |
✨ homepage: statistics and more customizations
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/index.html | 23 | ||||
-rw-r--r-- | ishtar_common/templates/welcome.html | 26 |
2 files changed, 30 insertions, 19 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 %} 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 %} -<h2>{% trans "Welcome in Ishtar, open source software for management and inventory of archaeological data" %}</h2> -<div class="row"> - {{random_image}} - <div class="col col-lg-9"> - <div class="card"> - <div class="card-body"> - <p>{% trans "Some useful links:" %}</p> - <ul> - <li><a href='https://ishtar-archeo.net' target="_blank">{% trans "Presentation site and blog" %}</a>{% trans ":"%} {% trans "stay tuned with Ishtar news!" %}</li> - <li><a href="https://ishtar.readthedocs.io/fr/{{ISHTAR_DOCUMENT_VERSION}}/" target="_blank">{% trans "Documentation" %}</a>{% trans ":"%} {% trans "inline documentation." %}</li> - <li><a href="{% url 'admin:index' %}" target="_blank">{% trans "Admin interface" %}</a>{% trans ":"%} {% trans "for admin only." %}</li> - <li><a href="https://discourse.ishtar-archeo.net/" target="_blank">{% trans "Forum" %}</a>{% trans ":"%} {% trans "need help? find a new bug? a fantastic feature to propose? Here is the place to go." %}</li> - <li><a href="https://gitlab.com/iggdrasil/ishtar" target="_blank">{% trans "Source code" %}</a> – <a href="https://tickets.iggdrasil.net/projects/ishtar" target="_blank">{% trans "tickets" %}</a>{% trans ":"%} {% trans "where the magic happens." %}</li> - </ul> - </div> - </div> - </div> -</div> +<p>{% trans "Some useful links:" %}</p> +<ul> + <li><a href='https://ishtar-archeo.net' target="_blank">{% trans "Presentation site and blog" %}</a>{% trans ":"%} {% trans "stay tuned with Ishtar news!" %}</li> + <li><a href="https://ishtar.readthedocs.io/fr/{{ISHTAR_DOCUMENT_VERSION}}/" target="_blank">{% trans "Documentation" %}</a>{% trans ":"%} {% trans "inline documentation." %}</li> + <li><a href="{% url 'admin:index' %}" target="_blank">{% trans "Admin interface" %}</a>{% trans ":"%} {% trans "for admin only." %}</li> + <li><a href="https://discourse.ishtar-archeo.net/" target="_blank">{% trans "Forum" %}</a>{% trans ":"%} {% trans "need help? find a new bug? a fantastic feature to propose? Here is the place to go." %}</li> + <li><a href="https://gitlab.com/iggdrasil/ishtar" target="_blank">{% trans "Source code" %}</a> – <a href="https://tickets.iggdrasil.net/projects/ishtar" target="_blank">{% trans "tickets" %}</a>{% trans ":"%} {% trans "where the magic happens." %}</li> +</ul> |