diff options
Diffstat (limited to 'templates/group_list.html')
-rw-r--r-- | templates/group_list.html | 16 |
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> – {% 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> – {% 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 %} |