aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-11-03 18:09:41 +0100
committerAlban Gruin2017-11-03 18:09:41 +0100
commit959bbaa5170aea4a9600d774280d44fc5107fdae (patch)
treeaba0b535096b0ae6fa75ed243fb5374df8ed73fb /templates
parent1edd7f6b2431095b27fd98205bb2ce5f462183e9 (diff)
parent5082e2aa0083a1c78cd39e86cb141786c2ab6efe (diff)
Merge branch 'fusion/alban'
Diffstat (limited to 'templates')
-rw-r--r--templates/calendars.html13
-rw-r--r--templates/timetable.html2
2 files changed, 14 insertions, 1 deletions
diff --git a/templates/calendars.html b/templates/calendars.html
new file mode 100644
index 0000000..d97ea78
--- /dev/null
+++ b/templates/calendars.html
@@ -0,0 +1,13 @@
+{% extends "index.html" %}
+
+{% block title %}ICS disponibles pour le groupe {{ group }} – {% endblock %}
+
+{% block body %}
+ <h2>ICS disponibles pour le groupe {{ group }}</h2>
+ <ul>
+ <li><a href="{% url "ics" group.timetable.year.slug group.timetable.slug group.slug %}">Un seul ICS pour tous les cours</a></li>
+{% for group in groups %}
+ <li><a href="{% url "ics-group" group.timetable.year.slug group.timetable.slug group.slug %}">ICS des cours du groupe {{ group }} uniquement</a></li>
+{% endfor %}
+ </ul>
+{% endblock %}
diff --git a/templates/timetable.html b/templates/timetable.html
index e4dffe7..fc2065f 100644
--- a/templates/timetable.html
+++ b/templates/timetable.html
@@ -18,4 +18,4 @@
{% if last_update %}Dernière mise à jour le {{ last_update|date:"l j F o" }} à {{ last_update|date:"H:i" }}{% endif %}
</p>
{% include "timetable_common.html" %}
- <p class="subscribe"><a href="{% url "ics" group.timetable.year.slug group.timetable.slug group.slug %}">ICS</a> &ndash; <a href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}">RSS</a> &ndash; <a href="{% url "atom" group.timetable.year.slug group.timetable.slug group.slug %}">Atom</a></p>{% endblock %}
+ <p class="subscribe"><a href="{% url "calendars" group.timetable.year.slug group.timetable.slug group.slug %}">ICS</a> &ndash; <a href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}">RSS</a> &ndash; <a href="{% url "atom" group.timetable.year.slug group.timetable.slug group.slug %}">Atom</a></p>{% endblock %}