diff options
author | Alban Gruin | 2017-10-29 15:37:43 +0100 |
---|---|---|
committer | Alban Gruin | 2017-10-29 15:37:43 +0100 |
commit | c80a41ffafe3065f35f07b71063b5596d33d0ff2 (patch) | |
tree | dfe357fe9ce314460fa0d9312f3f0bcdd419862e /templates | |
parent | f0790a2420684a39e2b48922beec1245f4446912 (diff) |
Déplacement de tous les liens vers les ICS dans une page spéciale
Diffstat (limited to 'templates')
-rw-r--r-- | templates/calendars.html | 13 | ||||
-rw-r--r-- | templates/timetable.html | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/templates/calendars.html b/templates/calendars.html new file mode 100644 index 0000000..70f3dac --- /dev/null +++ b/templates/calendars.html @@ -0,0 +1,13 @@ +{% extends "index.html" %} + +{% block title %}Calendriers disponibles pour le groupe {{ group }} – {% endblock %} + +{% block body %} + <h2>Calendriers 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 pour le groupe {{ group }} uniquement</a></li> +{% endfor %} + </ul> +{% endblock %} diff --git a/templates/timetable.html b/templates/timetable.html index b009174..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> – <a href="{% url "calendar-list" group.timetable.year.slug group.timetable.slug group.slug %}">ICS séparés</a> – <a href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}">RSS</a> – <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> – <a href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}">RSS</a> – <a href="{% url "atom" group.timetable.year.slug group.timetable.slug group.slug %}">Atom</a></p>{% endblock %} |