From 7f0fa4871566050e283845ee0577603ded70df0f Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 21 Apr 2018 12:59:32 +0200 Subject: templates: abstraction et séparation des templates de liste --- templates/index.html | 20 ++++++++++---------- templates/mention_list.html | 6 ++++++ templates/year_list.html | 5 +++++ views.py | 4 ++-- 4 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 templates/mention_list.html create mode 100644 templates/year_list.html diff --git a/templates/index.html b/templates/index.html index 007ab35..c7c2543 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@ {% block head %}{% endblock %} - {% block title %}{% if year %}{{ year }} – {% endif %}{% endblock %}celcatsanitizer + {% block title %}{% endblock %}celcatsanitizer @@ -13,15 +13,15 @@
{% block body %} -

{% if year %}{{ year }} – Choisissez votre mention{% else %}Choisissez votre année{% endif %}

- - {% if year %}Retour à la liste des années{% else %}Emploi du temps des salles{% endif %} +

{% block pagetitle %}{% endblock %}

+ + {% block navigation %}{% endblock %} {% endblock %}