aboutsummaryrefslogtreecommitdiff
path: root/templates/group_list.html
blob: 9c9a7fcf794ffdaa51c2a72f47fbfa63da005a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% extends "index.html" %}
{% load dt_week %}

{% block title %}{% if timetable %}{{ timetable }}{% else %}Emploi du temps des salles{% endif %} – {% endblock %}

{% block body %}
      <h3>{% if timetable %}<a href="{{ timetable.source.url }}">{{ timetable }}</a>{% else %}Emploi du temps des salles{% endif %}</h3>
      <ul>
        {% for group in groups %}
        <li><a class="text"{% if group.weeks is not None %} href="{% if timetable %}{% url "timetable" timetable.year.slug timetable.slug group.slug %}{% else %}{% url "room-timetable" group.slug %}{% endif %}"{% endif %}>{{ group }}</a> &mdash; {% for week in group.weeks %}<a href="{% if timetable %}{% url "timetable" timetable.year.slug timetable.slug group.slug week.year week|dt_week %}{% else %}{% url "room-timetable" group.slug week.year week|dt_week %}{% endif %}">{{ week|dt_prettyprint }}</a> {% if not forloop.last %}&ndash; {% endif %}{% empty %}<em>aucun cours dans le mois à venir</em>{% endfor %}</li>
        {% endfor %}
      </ul>
      {% if timetable %}
        <a href="{% url "mentions" timetable.year.slug %}">Retour à la liste des mentions</a> &ndash;
        <a href="{% url "groups-all" timetable.year.slug timetable.slug %}">Tous les groupes</a>
      {% else %}
        <a href="{% url "index" %}">Retour à la liste des années</a>
      {% endif %}
{% endblock %}