aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlban Gruin2017-10-10 21:16:27 +0200
committerAlban Gruin2017-10-10 21:16:27 +0200
commitd4dd17cc3ef13f2322ccab292fb6bc544c753f49 (patch)
treef77617887abe53bcba9a702d66647628a47073d2 /templates
parent604fab9f88b510599d175bf6545ee49f5f82addd (diff)
parent5939a5dc3747e8b872dd4cb0c622621c25b72c5d (diff)
Merge branch 'stable/0.10.z' into prod/pa1ch/0.10.zv0.10.5-pa1ch
Diffstat (limited to 'templates')
-rw-r--r--templates/timetable.html2
-rw-r--r--templates/timetable_common.html3
2 files changed, 3 insertions, 2 deletions
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 %}
<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 />
{% 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 %}
</p>
{% include "timetable_common.html" %}
<p class="subscribe"><a href="{% url "ics" group.timetable.year.slug group.timetable.slug group.slug %}">ICS</a> &ndash; <a href="{% url "rss" group.timetable.year.slug group.timetable.slug group.slug %}">RSS</a> &ndash; <a href="{% url "atom" group.timetable.year.slug group.timetable.slug group.slug %}">Atom</a></p>{% 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 @@
<small>Remarques : {{ course.notes }}</small>{% endif %}
</li>{% endfor %}
</ul>
- </section>{% endfor %}
+ </section>{% empty %}
+ <p>Aucun cours cette semaine.</p>{% endfor %}