show "now scheduled yet" for events that are not.. scheduled yet

This commit is contained in:
Thomas Steen Rasmussen 2016-08-08 23:22:32 +02:00
parent 2380b840ce
commit ca951715e8

View file

@ -11,8 +11,12 @@
</h3>
<h4>
{{ 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 %}<br />
{% else %}
Not scheduled yet
{% endif %}
</h4>
{{ event.abstract|commonmark }}