aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-11-18 15:56:44 +0100
committerAlban Gruin2017-11-27 12:11:30 +0100
commitac9489cf4faa063c9270a3900a52809306355ea2 (patch)
tree47abccc710ff0b1136494fd03b3eac78a1f07537 /templates
parent959afb011f5e98e56f88a455228eab32579c9433 (diff)
Adaptation de la template pour pouvoir afficher la liste des emplois
du temps des salles
Diffstat (limited to 'templates')
-rw-r--r--templates/group_list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/group_list.html b/templates/group_list.html
index f21b2b1..88cc7a4 100644
--- a/templates/group_list.html
+++ b/templates/group_list.html
@@ -1,13 +1,13 @@
{% extends "index.html" %}
{% load dt_week %}
-{% block title %}{{ timetable }} – {% endblock %}
+{% block title %}{% if timetable %}{{ timetable }}{% else %}Emploi du temps des salles{% endif %} – {% endblock %}
{% block body %}
- <h3><a href="{{ timetable.url }}">{{ timetable }}</a></h3>
+ <h3>{% if timetable %}<a href="{{ timetable.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="{% url "timetable" timetable.year.slug timetable.slug group.slug %}"{% endif %}>{{ group }}</a> &mdash; {% for week in group.weeks %}<a href="{% url "timetable" timetable.year.slug timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% if not forloop.last %}&ndash; {% endif %}{% empty %}<em>aucun cours dans le mois à venir</em>{% endfor %}</li>
+ <li><a class="text"{% if group.weeks is not None %} href="{% if timetable %}{% url "timetable" timetable.year.slug timetable.slug group.slug %}{% else %}#{% endif %}"{% endif %}>{{ group }}</a> &mdash; {% for week in group.weeks %}<a href="{% if timetable %}{% url "timetable" timetable.year.slug timetable.slug group.slug week.year week|dt_week %}{% else %}#{% endif %}">{{ week|dt_prettyprint }}</a> {% if not forloop.last %}&ndash; {% endif %}{% empty %}<em>aucun cours dans le mois à venir</em>{% endfor %}</li>
{% endfor %}
</ul>
{% endblock %}