aboutsummaryrefslogtreecommitdiff
path: root/templates/timetable.html
blob: 4bb3e103cb9d36b7445aee173c93aa29d0cfefd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% extends "index.html" %}
{% load dt_week %}

{% block head %}{% if group_mode %}
    <meta name="description" content="Emploi du temps du groupe {{ group }} &ndash; Semaine {{ week }}" />
    <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 %}{% if group_mode %}{{ timetable }} &ndash;{% else %}Salle{% endif %} {{ group }} &ndash; Semaine {{ week }} &ndash; {% endblock %}

{% block body %}
      <h2>{% if group_mode %}{{ timetable }} &ndash;{% else %}Salle{% endif %} {{ group }} &ndash; Semaine {{ week }}</h2>
      <p>
        {% if is_old_timetable %}
          <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">
        {% 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 %} &ndash;
        {% 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 %}