aboutsummaryrefslogtreecommitdiff
path: root/templates/timetable.html
diff options
context:
space:
mode:
authorAlban Gruin2018-01-19 20:27:21 +0100
committerAlban Gruin2018-01-19 20:50:25 +0100
commit2d5bb761ac83bfa4643006681587db2c5e11f60b (patch)
tree54ec8a435883aa95b159dcc91f45c9b62cf954ca /templates/timetable.html
parentd7dfa0c001a9b84541e1545e45d0536a87d6880e (diff)
Adaptation des liens vers les semaines suivantes et précédentes pour
les emplois du temps des salles
Diffstat (limited to 'templates/timetable.html')
-rw-r--r--templates/timetable.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/timetable.html b/templates/timetable.html
index cc90ed5..7811427 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -20,7 +20,7 @@
</p>
{% include "timetable_common.html" %}
<p class="subscribe">
- {% if last_week is not None %}<a href="{% url "timetable" timetable.year.slug timetable.slug group.slug last_week.year last_week|dt_week %}">Semaine {{ last_week|dt_week }}</a>{% if next_week is not None %} &ndash; {% endif %}{% endif %}{% if next_week is not None %}<a href="{% url "timetable" timetable.year.slug timetable.slug group.slug next_week.year next_week|dt_week %}"">Semaine {{ next_week|dt_week }}</a>{% endif %}
+ {% if last_week is not None %}<a href="{% if group_mode %}{% url "timetable" timetable.year.slug timetable.slug group.slug last_week.year last_week|dt_week %}{% else %}{% url "room-timetable" group.slug last_week.year last_week|dt_week %}{% endif %}">Semaine {{ last_week|dt_week }}</a>{% if next_week is not None %} &ndash; {% endif %}{% endif %}{% if next_week is not None %}<a href="{% if group_mode %}{% url "timetable" timetable.year.slug timetable.slug group.slug next_week.year next_week|dt_week %}{% else %}{% url "room-timetable" group.slug next_week.year next_week|dt_week %}{% endif %}">Semaine {{ next_week|dt_week }}</a>{% endif %}
{% if group_mode %}{% if last_week is not None or next_week is not None %}<br />{% endif %}
<a href="{% url "calendars" timetable.year.slug timetable.slug group.slug %}">ICS</a> &ndash; <a href="{% url "rss" timetable.year.slug timetable.slug group.slug %}">RSS</a> &ndash; <a href="{% url "atom" timetable.year.slug timetable.slug group.slug %}">Atom</a>{% endif %}
</p>{% endblock %}