From a61f5a3f507395c2aa0cab09f14f4308159935f6 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 4 Oct 2017 17:38:01 +0200 Subject: Ajout d’une description en balise meta et de liens alternate --- templates/index.html | 1 + templates/timetable.html | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 8d7634e..005fd5b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,7 @@ +{% block head %}{% endblock %} {% block title %}{% if year %}{{ year }} – {% endif %}{% endblock %}celcatsanitizer diff --git a/templates/timetable.html b/templates/timetable.html index 9143c2f..4ab6a1a 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -1,5 +1,12 @@ {% extends "index.html" %} +{% block head %} + + + + +{% endblock %} + {% block title %}{{ group.timetable }} – {{ group }} – Semaine {{ week }} – {% endblock %} {% block body %} -- cgit v1.2.1 From 5939a5dc3747e8b872dd4cb0c622621c25b72c5d Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 10 Oct 2017 18:26:37 +0200 Subject: Si la semaine courante n’a pas de cours existant, la page générale existe quand même --- templates/timetable.html | 2 +- templates/timetable_common.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/timetable.html b/templates/timetable.html index 4ab6a1a..e4dffe7 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -15,7 +15,7 @@ {% if is_old_timetable %} Accéder à l’emploi du temps de cette semaine.
{% endif %} - Dernière mise à jour le {{ last_update|date:"l j F o" }} à {{ last_update|date:"H:i" }} + {% if last_update %}Dernière mise à jour le {{ last_update|date:"l j F o" }} à {{ last_update|date:"H:i" }}{% endif %}

{% include "timetable_common.html" %}

ICSRSSAtom

{% endblock %} diff --git a/templates/timetable_common.html b/templates/timetable_common.html index 4319e60..9a2c27e 100644 --- a/templates/timetable_common.html +++ b/templates/timetable_common.html @@ -9,4 +9,5 @@ Remarques : {{ course.notes }}{% endif %} {% endfor %} - {% endfor %} + {% empty %} +

Aucun cours cette semaine.

{% endfor %} -- cgit v1.2.1 From 7ef57a0226fa25b8ea5e9a6ff5526889dc300649 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Fri, 27 Oct 2017 21:51:12 +0200 Subject: Ajout d’une page pour lister les calendriers disponibles --- templates/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 005fd5b..c47a0be 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@ {% block head %}{% endblock %} - {% block title %}{% if year %}{{ year }} – {% endif %}{% endblock %}celcatsanitizer + {% block title %}{% if year %}{{ year }}{% elif group %}{{ group }}{% endif %}{% if year or group %} – {% endif %}{% endblock %}celcatsanitizer @@ -13,10 +13,10 @@
{% block body %} -

{% if year %}{{ year }} – Choisissez votre mention{% else %}Choisissez votre année{% endif %}

+

{% if year %}{{ year }} – Choisissez votre mention{% elif group %}Calendriers disponibles pour le groupe {{ group }}{% else %}Choisissez votre année{% endif %}

-- cgit v1.2.1 From 70ad14a54a23744d10054a71d61a5be6df72780d Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Tue, 31 Oct 2017 13:26:58 +0100 Subject: Suppression d’une ligne inutile --- templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 1ea6e53..71665bc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,8 +24,7 @@ {% endblock %} -- cgit v1.2.1 From 2d68777e50e261cb793186321947b677ed9de692 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 1 Nov 2017 15:20:55 +0100 Subject: Correction des crashes provoqués lors de la génération des ICS lorsque le type d’un cours est nul. --- templates/timetable_common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/timetable_common.html b/templates/timetable_common.html index 9a2c27e..62b1d71 100644 --- a/templates/timetable_common.html +++ b/templates/timetable_common.html @@ -4,7 +4,7 @@

{% filter title %}{{ day.0.begin|date:"l j F o" }}{% endfilter %} – de {{ day.0.begin|date:"H:i" }} à {% with day|last as last %}{{ last.end|date:"H:i" }}{% endwith %}