symposion_app/pinaxcon/templates/symposion/schedule/_mobile.html

60 lines
1.6 KiB
HTML
Raw Normal View History

2018-10-06 00:01:42 +00:00
{% load lca2018_tags %}
{% load lca2019_tags %}
{% load waffle_tags %}
{% with timetable|day_has_tracks:timetable.day as has_tracks %}
2018-10-06 00:01:42 +00:00
{% for row in timetable %}
{% for slot in row.slots %}
<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" }}&ndash;{{ 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 %}
<p>
<a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
<br>
{{ slot.content.speakers|join:", "}}
</p>
{% endif %}
{% elif label == "shortbreak" %}
2018-10-06 00:01:42 +00:00
{% else %}
{% if slot.content_override %}
{{ slot.content_override_html|safe }}
{% else %}
<div class="d-flex align-items-center">
<p>{{ slot.kind.label }}</p>
</div>
{% endif %}
2018-10-06 00:01:42 +00:00
{% endif %}
{% endwith %}
<p><em>
{% if has_tracks and not slot.exclusive %}
{% with slot.rooms.0|trackname:timetable.day as track_name %}
{% if track_name %}{{ track_name }} &mdash; {% endif %}
{% endwith %}
{% endif %}
{{ slot.rooms|join:", "}}
<br />
ends {{ slot.end }}
</em></p>
{% 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 %}
{% if forloop.last %}
<div class="mobile-slot my-3">
<h3>{{ row.time|date:"h:iA" }}</h3>
<p><em>Day End</em></p>
</div>
2018-10-06 00:01:42 +00:00
{% endif %}
{% endfor %}
{% endwith %}