2018-10-06 00:01:42 +00:00
|
|
|
{% load lca2018_tags %}
|
|
|
|
{% load lca2019_tags %}
|
|
|
|
{% load waffle_tags %}
|
|
|
|
|
|
|
|
|
|
|
|
{% for row in timetable %}
|
|
|
|
{% if forloop.last %}
|
|
|
|
{% else %}
|
|
|
|
{% for slot in row.slots %}
|
2019-10-20 13:16:29 +00:00
|
|
|
<div class="mobile-slot my-3">
|
2018-10-06 00:01:42 +00:00
|
|
|
{% if forloop.first %}
|
2018-12-08 06:27:02 +00:00
|
|
|
<h3>{{ row.time|date:"h:iA" }}–{{ row.end|date:"h:iA" }}</h3>
|
2018-10-06 00:01:42 +00:00
|
|
|
{% endif %}
|
|
|
|
{% with slot.kind.label.lower as label %}
|
|
|
|
{% if label == "talk" or label == "tutorial" %}
|
|
|
|
{% if slot.content %}
|
2019-10-20 13:16:29 +00:00
|
|
|
<p>
|
|
|
|
<a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
|
|
|
|
<br>
|
|
|
|
{{ slot.content.speakers|join:", "}}
|
|
|
|
</p>
|
|
|
|
{% listlookup timetable.rooms forloop.counter0 as room_names %}
|
|
|
|
<p><em>{{ room_names }}<br />ends {{ slot.end }}</em></p>
|
2018-10-06 00:01:42 +00:00
|
|
|
{% endif %}
|
2019-12-15 04:45:00 +00:00
|
|
|
{% elif label == "shortbreak" %}
|
2018-10-06 00:01:42 +00:00
|
|
|
{% else %}
|
2019-12-15 04:45:00 +00:00
|
|
|
{% if slot.content_override %}
|
|
|
|
{{ slot.content_override_html|safe }}
|
|
|
|
{% else %}
|
|
|
|
<div class="d-flex align-items-center">
|
2018-10-06 00:01:42 +00:00
|
|
|
<p>{{ slot.kind.label }}</p>
|
2019-12-15 04:45:00 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-10-06 00:01:42 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2019-12-15 04:45:00 +00:00
|
|
|
|
|
|
|
{% if edit_schedule %}
|
|
|
|
<a class="btn btn-secondary btn-sm edit-slot" role="button" data-action="{% url "schedule_slot_edit" schedule.section.slug slot.pk %}" href="#">Edit</a>
|
|
|
|
{% endif %}
|
2018-10-06 00:01:42 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|