show category and time on speaker detail page

This commit is contained in:
Thomas Steen Rasmussen 2016-08-09 01:02:54 +02:00
parent b81be0ae53
commit d59622d662

View file

@ -13,6 +13,15 @@
<h3><a href="{% url 'schedule:event' slug=event.slug %}">{{ event.title }}</a></h3>
{{ event.abstract|commonmark }}
<small style="background-color: {{ event.event_type.color }}; border: 0; color: {% if event.event_type.light_text %}white{% else %}black{% endif %}; display: inline-block; padding: 5px;">
{{ event.event_type.name }}
</small> 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 %}
{% endfor %}