diff options
author | Alban Gruin | 2018-04-23 16:20:38 +0200 |
---|---|---|
committer | Alban Gruin | 2018-04-23 16:20:38 +0200 |
commit | 63ceb7ff232cd4015ae148bec31c6d72d9239c19 (patch) | |
tree | 9aee056480b5fae0c97f5e1c8be4ab1358602926 /templates/timetable.html | |
parent | af055dbf703af0eca03862194de1a0f34ac1fcc5 (diff) | |
parent | 9853d375d9e482c23f5fdbed9a3cf041029a92cb (diff) |
Merge branch 'qsjps' into futur
Diffstat (limited to 'templates/timetable.html')
-rw-r--r-- | templates/timetable.html | 51 |
1 files changed, 42 insertions, 9 deletions
diff --git a/templates/timetable.html b/templates/timetable.html index fc2065f..a6dc1ab 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -1,21 +1,54 @@ {% extends "index.html" %} +{% load dt_week %} -{% block head %} +{% block head %}{% if group_mode %} <meta name="description" content="Emploi du temps du groupe {{ group }} – Semaine {{ week }}" /> - <link rel="alternate" type="application/atom+xml" title="Emploi du temps du groupe {{ group }} (Atom)" href="{% url "atom" group.timetable.year.slug group.timetable.slug group.slug %}" /> - <link rel="alternate" type="application/rss+xml" title="Emploi du temps du groupe {{ group }} (RSS)" href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}" /> - <link rel="alternate" type="text/calendar" title="Emploi du temps du groupe {{ group }} (iCalendar)" href="{% url "ics" group.timetable.year.slug group.timetable.slug group.slug %}"> -{% endblock %} + <link rel="alternate" type="application/atom+xml" title="Emploi du temps du groupe {{ group }} (Atom)" href="{% url "atom" timetable.year.slug timetable.slug group.slug %}" /> + <link rel="alternate" type="application/rss+xml" title="Emploi du temps du groupe {{ group }} (RSS)" href="{% url "rss" timetable.year.slug timetable.slug group.slug %}" /> + <link rel="alternate" type="text/calendar" title="Emploi du temps du groupe {{ group }} (iCalendar)" href="{% url "ics" timetable.year.slug timetable.slug group.slug %}"> +{% endif %}{% endblock %} -{% block title %}{{ group.timetable }} – {{ group }} – Semaine {{ week }} – {% endblock %} +{% block title %}{% if group_mode %}{{ timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }} – {% endblock %} {% block body %} - <h2>{{ group.timetable }} – {{ group }} – Semaine {{ week }}</h2> + <h2>{% if group_mode %}{{ timetable }} –{% else %}Salle{% endif %} {{ group }} – Semaine {{ week }}</h2> <p> {% if is_old_timetable %} - <b><a href="{% url "timetable" group.timetable.year.slug group.timetable.slug group.slug %}">Accéder à l’emploi du temps de cette semaine.</b></a><br /> + <b><a href="{% if group_mode %}{% url "timetable" timetable.year.slug timetable.slug group.slug %}{% else %}{% url "room-timetable" group.slug %}{% endif %}"> + Accéder à l’emploi du temps de cette semaine. + </b></a><br /> {% endif %} {% 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 "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 %} + <p class="subscribe"> + {% if group_mode %} + <a href="{% url "groups" timetable.year.slug timetable.slug %}">Retour à la liste des groupes</a> + {% else %} + <a href="{% url "rooms" %}">Retour à la liste des salles</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> + – + {% 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 %} + <a href="{% url "group-weeks" timetable.year.slug timetable.slug group.slug %}">Liste des semaines</a> + {% else %} + <a href="{% url "room-weeks" group.slug %}">Liste des semaines</a> + {% endif %} + <br /> + {% if group_mode %} + <a href="{% url "calendars" timetable.year.slug timetable.slug group.slug %}">ICS</a> – + <a href="{% url "rss" timetable.year.slug timetable.slug group.slug %}">RSS</a> – + <a href="{% url "atom" timetable.year.slug timetable.slug group.slug %}">Atom</a> + {% endif %} + </p> +{% endblock %} |