diff options
author | Alban Gruin | 2018-04-23 16:20:38 +0200 |
---|---|---|
committer | Alban Gruin | 2018-04-23 16:20:38 +0200 |
commit | 63ceb7ff232cd4015ae148bec31c6d72d9239c19 (patch) | |
tree | 9aee056480b5fae0c97f5e1c8be4ab1358602926 /templates/index.html | |
parent | af055dbf703af0eca03862194de1a0f34ac1fcc5 (diff) | |
parent | 9853d375d9e482c23f5fdbed9a3cf041029a92cb (diff) |
Merge branch 'qsjps' into futur
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/templates/index.html b/templates/index.html index 71665bc..cdab591 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,18 +13,19 @@ </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><a href="{% block url %}{% endblock %}">{% block element %}{{ element }}{% endblock %}</a></li> + {% empty %} + <p><em>{% block empty %}Aucun emploi du temps à afficher{% endblock %}</em></p> + {% endfor %} + </ul> + {% block navigation %}{% endblock %} {% endblock %} </div> <footer> - <p>(c) 2017 – Alban Gruin – <a href="{% url "django.contrib.flatpages.views.flatpage" url="contact/" %}">contacter</a> – celcatsanitizer {{ celcatsanitizer_version }} – <a href="{% url "django.contrib.flatpages.views.flatpage" url="a-propos/" %}">à propos</a><br /> + <p>(c) 2018 – Alban Gruin – <a href="{% url "django.contrib.flatpages.views.flatpage" url="contact/" %}">contacter</a> – celcatsanitizer {{ celcatsanitizer_version }} – <a href="{% url "django.contrib.flatpages.views.flatpage" url="a-propos/" %}">à propos</a><br /> Design inspiré par <a href="https://bestmotherfucking.website/">https://bestmotherfucking.website/</a></p> </footer> </body> |