aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 262d454..7b43411 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,3 +1,4 @@
+{% load dt_week %}
<!DOCTYPE html>
<html lang="fr">
<head>
@@ -11,7 +12,8 @@
<ul>
{% for group in groups %}
{% if group.timetable.id == timetable.id %}
- <li><a href="{% url "timetable" timetable.slug group.slug %}">{{ group.name }}</a></li>
+ <li>{{ group.name }} &ndash; {% for week in group.weeks %}<a href="{% url "timetable" timetable.slug week.year week|dt_week group.slug %}">{{ week|dt_prettyprint }}</a> {% endfor %}</li>
+ {#<li><a href="{% url "timetable" timetable.slug 2017 52 group.slug %}">{{ group.name }}</a></li>#}
{% endif %}
{% endfor %}
</ul>