diff options
author | Alban Gruin | 2018-04-15 15:20:26 +0200 |
---|---|---|
committer | Alban Gruin | 2018-04-15 15:27:54 +0200 |
commit | 4a252a9aa0fab38c4fce8ef292e2f3548a397126 (patch) | |
tree | e247a0e89c91862285ac053f4c145df8d244f96e /templates | |
parent | 2b6d00999af12699b24c39a22655291b63d37cee (diff) |
group_list: correction de l’URL proposée comme source de l’emploi du temps
Depuis la séparation entre source et emploi du temps, timetable.url
contient le lien vers la liste des groupes de la page, et donc ici
pointe sur lui-même.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/group_list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/group_list.html b/templates/group_list.html index 5f53cb4..35536b6 100644 --- a/templates/group_list.html +++ b/templates/group_list.html @@ -4,7 +4,7 @@ {% block title %}{% if timetable %}{{ timetable }}{% else %}Emploi du temps des salles{% endif %} – {% endblock %} {% block body %} - <h3>{% if timetable %}<a href="{{ timetable.url }}">{{ timetable }}</a>{% else %}Emploi du temps des salles{% endif %}</h3> + <h3>{% if timetable %}<a href="{{ timetable.source.url }}">{{ timetable }}</a>{% else %}Emploi du temps des salles{% endif %}</h3> <ul> {% for group in groups %} <li><a class="text"{% if group.weeks is not None %} href="{% if timetable %}{% url "timetable" timetable.year.slug timetable.slug group.slug %}{% else %}{% url "room-timetable" group.slug %}{% endif %}"{% endif %}>{{ group }}</a> — {% for week in group.weeks %}<a href="{% if timetable %}{% url "timetable" timetable.year.slug timetable.slug group.slug week.year week|dt_week %}{% else %}{% url "room-timetable" group.slug week.year week|dt_week %}{% endif %}">{{ week|dt_prettyprint }}</a> {% if not forloop.last %}– {% endif %}{% empty %}<em>aucun cours dans le mois à venir</em>{% endfor %}</li> |