diff options
author | Alban Gruin | 2017-09-07 22:22:46 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-07 22:22:46 +0200 |
commit | f18b2cc4f4aa7b2ed2d7801c19ddf75acbb6abc2 (patch) | |
tree | bcff554a2e98460075780e339141f7adf289704c /templates/index.html | |
parent | a79e87a3ecfd505846c04f7949b1036a102430ed (diff) |
Remplacement de la page d’acceuil par la liste des années, menant sur
une liste de mentions, puis une liste de groupes, etc etc.
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/templates/index.html b/templates/index.html index d834884..09bb0f6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -58,13 +58,17 @@ li.course { <header> <h1><a href="{% url "index" %}">celcatsanitizer</a></h1> </header> - <div class="content">{% block body %}{% for timetable in timetables %} - <section id="{{ timetable.slug }}"> - <h3><a href="{{ timetable.url }}">{{ timetable.name }}</a></h3> - <ul>{% for group in groups %}{% if group.timetable.id == timetable.id %} - <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.slug group.slug %}"{% endif %}>{{ group.name }}</a> – {% for week in group.weeks %}<a href="{% url "timetable" timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% empty %}<em>aucun cours</em>{% endfor %}</li>{% endif %}{% endfor %} - </ul> - </section>{% endfor %}{% endblock %} + <div class="content"> + {% block body %} + <h3>Choisissez votre année</h3> + <ul> + {% for year in years %} + <li><a href="{% url "mentions" year.year %}">{{ year.year }}</a> <small>({{ year.count }})</small></li> + {% empty %} + <p><em>Aucun emploi du temps à afficher</em></p> + {% endfor %} + </ul> + {% endblock %} </div> <footer> <p>(c) 2017 – Alban Gruin<br /> |