From ca951715e82d067c23e6cc652b68384dd7a5262a Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 8 Aug 2016 23:22:32 +0200 Subject: [PATCH] show "now scheduled yet" for events that are not.. scheduled yet --- program/templates/program_event_detail.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/program/templates/program_event_detail.html b/program/templates/program_event_detail.html index 1c498854..3dd91653 100644 --- a/program/templates/program_event_detail.html +++ b/program/templates/program_event_detail.html @@ -11,8 +11,12 @@

- {{ event.start|date:"H:i" }} - {{ event.end|date:"H:i" }} at +{% if event.start and event.end and event.days.all.exists %} + {{ event.start|date:"H:i" }} - {{ event.end|date:"H:i" }} on {% for day in event.days.all %}{{ day.date|date:"l" }}{% if not forloop.last %}, {% endif %}{% endfor %}
+{% else %} +Not scheduled yet +{% endif %}

{{ event.abstract|commonmark }}