diff options
author | Alban Gruin | 2018-01-21 19:29:45 +0100 |
---|---|---|
committer | Alban Gruin | 2018-01-21 19:42:55 +0100 |
commit | e815411b1d10ba0c94fa19a942033957a341f3fc (patch) | |
tree | eaefbf7197649c38d430d6777a32eaaaa9b90b7a | |
parent | 8ad4a03f9d6ab6d218ddcbe277ca3766f05f6d79 (diff) |
Améliorations de navigationfusion/alban
Lien pour retourner à la liste des groupes sur la page des emplois du temps
Lien pour retourner à la liste des années sur la page de liste des mentions
Lien pour retourner à la liste des mentions sur la page des groupes
Lien pour retourner à la liste des années sur la liste des salles
Lien pour accéder à la liste des salles sur la page principale
Lien pour retourner à la liste des salles sur le formulaire QSJPS
-rw-r--r-- | templates/group_list.html | 1 | ||||
-rw-r--r-- | templates/index.html | 1 | ||||
-rw-r--r-- | templates/qsjps_form.html | 1 | ||||
-rw-r--r-- | templates/timetable.html | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/templates/group_list.html b/templates/group_list.html index 7fe1fe8..5f53cb4 100644 --- a/templates/group_list.html +++ b/templates/group_list.html @@ -10,4 +10,5 @@ <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> — {% 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 %}– {% 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>{% else %}<a href="{% url "index" %}">Retour à la liste des années</a>{% endif %} {% endblock %} diff --git a/templates/index.html b/templates/index.html index 71665bc..5779b3e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,6 +21,7 @@ <p><em>Aucun emploi du temps à afficher</em></p> {% endfor %} </ul> + {% if year %}<a href="{% url "index" %}">Retour à la liste des années</a>{% else %}<a href="{% url "rooms" %}">Emploi du temps des salles</a>{% endif %} {% endblock %} </div> <footer> diff --git a/templates/qsjps_form.html b/templates/qsjps_form.html index b68143f..280a7ad 100644 --- a/templates/qsjps_form.html +++ b/templates/qsjps_form.html @@ -15,4 +15,5 @@ <tr><th></th><td><input type="submit" value="Trouver une salle" /></td></tr> </table> </form> + <a href="{% url "rooms" %}">Retour à la liste des salles</a> {% endblock %} diff --git a/templates/timetable.html b/templates/timetable.html index 7811427..5848e04 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -20,6 +20,7 @@ </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 %} – {% 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 %} – {% 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> – <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 %} |