{% load lca2018_tags %} {% load lca2019_tags %} {% load waffle_tags %} {% with timetable|day_has_tracks:timetable.day as has_tracks %} {% for row in timetable %} {% for slot in row.slots %}
{% if forloop.first %}

{{ row.time|date:"h:iA" }}–{{ row.end|date:"h:iA" }}

{% endif %} {% with slot.kind.label.lower as label %} {% if label == "talk" or label == "tutorial" %} {% if slot.content %}

{{ slot.content.title }}
{{ slot.content.speakers|join:", "}}

{% endif %} {% elif label == "shortbreak" %} {% else %} {% if slot.content_override %} {{ slot.content_override_html|safe }} {% else %}

{{ slot.kind.label }}

{% endif %} {% endif %} {% endwith %}

{% if has_tracks %} {% with slot.rooms|listlookup:forloop.counter0|trackname:timetable.day as track_name %} {% if track_name %}{{ track_name }} — {% endif %} {% endwith %} {% endif %} {{ slot.rooms|join:", "}}
ends {{ slot.end }}

{% if edit_schedule %} Edit {% endif %}
{% endfor %} {% if forloop.last %}

{{ row.time|date:"h:iA" }}

Day End

{% endif %} {% endfor %} {% endwith %}