diff options
author | Alban Gruin | 2017-01-20 14:37:49 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-20 14:37:49 +0100 |
commit | a4c9f9027c443a32ff3475dc292c7495f685b651 (patch) | |
tree | fa5bb432284ad6964519e05c79e93cad4a45aae3 /templates/index.html | |
parent | 5349208724305c9ec1ea4ab1c51af9969dc586e0 (diff) |
Affichage des emplois du temps par semaine
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 4 |
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 }} – {% 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> |