diff options
author | Alban Gruin | 2018-04-25 21:18:25 +0200 |
---|---|---|
committer | Alban Gruin | 2018-04-25 21:18:25 +0200 |
commit | 1789cbf1dcf555b35785e47237fb0a1f95720a45 (patch) | |
tree | e1645a307ee790bdd50751c8bde5694890e0257b /templates/index.html | |
parent | 81046d1e44380fd961efbc308a85d134f33d2bab (diff) | |
parent | 4c82869e3a590c982c43958e3e4b0f9fad440678 (diff) |
Merge branch 'futur'
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/templates/index.html b/templates/index.html index 081f663..e86038e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@ <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> {% block head %}{% endblock %} - <title>{% block title %}{% if year %}{{ year }} – {% endif %}{% endblock %}celcatsanitizer</title> + <title>{% block title %}{% endblock %}celcatsanitizer</title> <link rel="stylesheet" href="{% static "celcatsanitizer/style.css" %}"> </head> <body> @@ -13,14 +13,15 @@ </header> <div class="content"> {% block body %} - <h3>{% if year %}{{ year }} – Choisissez votre mention{% else %}Choisissez votre année{% endif %}</h3> - <ul> - {% for element in elements %} - <li><a href="{% if year %}{% url "groups" year.slug element.slug %}{% else %}{% url "mentions" element.slug %}{% endif %}">{{ element }}</a></li> - {% empty %} - <p><em>Aucun emploi du temps à afficher</em></p> - {% endfor %} - </ul> + <h3>{% block pagetitle %}{% endblock %}</h3> + <ul> + {% for element in elements %} + <li>{% block lelement %}<a href="{% block url %}{% endblock %}">{% block element %}{{ element }}{% endblock %}</a>{% endblock %}</li> + {% empty %} + <p><em>{% block empty %}Aucun emploi du temps à afficher{% endblock %}</em></p> + {% endfor %} + </ul> + {% block navigation %}{% endblock %} {% endblock %} </div> <footer> |