diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-05-09 10:15:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-05-09 10:15:28 +0200 |
commit | ed069c6e34386792abd27efa79a91c30a42bd576 (patch) | |
tree | b6e467bbe6803f33956ea6606d404cba7b454349 /ishtar_common/templates | |
parent | 3d4ccf95e91b4a6acbe054d149d34daf43aec9c0 (diff) | |
download | Ishtar-ed069c6e34386792abd27efa79a91c30a42bd576.tar.bz2 Ishtar-ed069c6e34386792abd27efa79a91c30a42bd576.zip |
Administration: improved display of subcategories (in color)
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/admin/index.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/ishtar_common/templates/admin/index.html b/ishtar_common/templates/admin/index.html index 1019ea7c0..1c5b0dd84 100644 --- a/ishtar_common/templates/admin/index.html +++ b/ishtar_common/templates/admin/index.html @@ -1,7 +1,20 @@ {% extends "admin/base_site.html" %} {% load i18n static %} -{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}">{% endblock %} +{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}"> +<style> + .admin-section { + background: #a6c2d0; + color: #fff; + } + .admin-section th { + font-size: 12px; + font-weight: normal; + letter-spacing: 0.5px; + text-transform: uppercase; + padding: 6px 10px; + } +</style>{% endblock %} {% block coltype %}colMS{% endblock %} @@ -22,7 +35,7 @@ {% for model in app.models %} {# Ishtar #} {% ifchanged model.admin_section %} - {% if model.admin_section or forloop.counter0 %}<tr><th colspan="3">{% if model.admin_section %}{{ model.admin_section }}{% else %} {% endif %}</th></tr>{% endif %} + {% if model.admin_section or forloop.counter0 %}<tr class="admin-section"><th colspan="3">{% if model.admin_section %}{{ model.admin_section }}{% else %} {% endif %}</th></tr>{% endif %} {% endifchanged %} {# Ishtar end #} <tr class="model-{{ model.object_name|lower }}"> |