diff options
author | Alban Gruin | 2017-10-27 21:51:12 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-27 21:51:12 +0200 |
commit | 7ef57a0226fa25b8ea5e9a6ff5526889dc300649 (patch) | |
tree | ddcac97876e52c0e64cb8d1a4431cb9d087f5ef2 /templates/index.html | |
parent | df3cb623a79d925e6af048bc88e607094c6b692e (diff) |
Ajout d’une page pour lister les calendriers disponibles
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/index.html b/templates/index.html index 005fd5b..c47a0be 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 %}{% if year %}{{ year }}{% elif group %}{{ group }}{% endif %}{% if year or group %} – {% endif %}{% endblock %}celcatsanitizer</title> <link rel="stylesheet" href="{% static "celcatsanitizer/style.css" %}"> </head> <body> @@ -13,10 +13,10 @@ </header> <div class="content"> {% block body %} - <h3>{% if year %}{{ year }} – Choisissez votre mention{% else %}Choisissez votre année{% endif %}</h3> + <h3>{% if year %}{{ year }} – Choisissez votre mention{% elif group %}Calendriers disponibles pour le groupe {{ group }}{% 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> + <li><a href="{% if year %}{% url "groups" year.slug element.slug %}{% elif group %}{% url "ics-group" group.timetable.year.slug group.timetable.slug element.slug %}{% else %}{% url "mentions" element.slug %}{% endif %}">{{ element }}</a></li> {% empty %} <p><em>Aucun emploi du temps à afficher</em></p> {% endfor %} |