aboutsummaryrefslogtreecommitdiff
path: root/templates/group_list.html
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 23:12:57 +0200
committerAlban Gruin2017-09-07 23:12:57 +0200
commit5767fe2b49858dd8174193ffa8c2e8b3fda1fc6c (patch)
tree5176298f82739e146621f8661bdf4a01f9062b0e /templates/group_list.html
parentdaa35602eeee6b15cea2b4e92a0556de2a1b4905 (diff)
Utilisation du modèle Year où nécessaire
Diffstat (limited to 'templates/group_list.html')
-rw-r--r--templates/group_list.html16
1 files changed, 9 insertions, 7 deletions
diff --git a/templates/group_list.html b/templates/group_list.html
index d4c3579..d8d7227 100644
--- a/templates/group_list.html
+++ b/templates/group_list.html
@@ -1,9 +1,11 @@
{% extends "index.html" %}
+{% load dt_week %}
-{% 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> &ndash; {% 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 %}
+{% block body %}
+ <h3><a href="{{ timetable.url }}">{{ timetable }}</a></h3>
+ <ul>
+ {% for group in groups %}
+ <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.slug group.slug %}"{% endif %}>{{ group }}</a> &ndash; {% 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>
+ {% endfor %}
+ </ul>
+{% endblock %}