2017-01-10 04:12:07 +00:00
|
|
|
{% load pyconau2017_tags %}
|
2015-10-16 17:53:02 +00:00
|
|
|
<table class="calendar table table-bordered">
|
2016-09-18 10:40:55 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="time"> </th>
|
|
|
|
{% for room in timetable.rooms %}
|
|
|
|
<th>{{ room.name }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
2016-12-26 01:10:42 +00:00
|
|
|
<tr>
|
|
|
|
<th class="time"> </th>
|
|
|
|
{% for room in timetable.rooms %}
|
|
|
|
{% with room|trackname:timetable.day as track_name %}
|
|
|
|
<th class="track-name">{% if track_name %}<p>{{ track_name }}{% endif %}</th>
|
|
|
|
{% endwith %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
2016-09-18 10:40:55 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for row in timetable %}
|
|
|
|
<tr>
|
2016-12-10 06:11:40 +00:00
|
|
|
<td class="time"><h4>{{ row.time|date:"h:iA" }}</h4></td>
|
2016-09-18 10:40:55 +00:00
|
|
|
{% for slot in row.slots %}
|
|
|
|
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
|
|
|
|
{% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %}
|
|
|
|
{% if not slot.content %}
|
|
|
|
{% else %}
|
|
|
|
<span class="title">
|
|
|
|
<a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
|
|
|
|
</span>
|
|
|
|
<span class="speaker">
|
|
|
|
{{ slot.content.speakers|join:", " }}
|
|
|
|
</span>
|
2016-12-10 06:11:40 +00:00
|
|
|
<span class="room">
|
|
|
|
{{ slot.rooms|join:", "}}
|
|
|
|
</span>
|
2016-09-18 10:40:55 +00:00
|
|
|
{% endif %}
|
2016-12-08 08:56:43 +00:00
|
|
|
{% elif slot.kind.label == "shortbreak" %}
|
2016-09-18 10:40:55 +00:00
|
|
|
{% else %}
|
2016-12-10 06:11:40 +00:00
|
|
|
{% if slot.content_override %}
|
|
|
|
{{ slot.content_override_html|safe }}
|
2016-09-18 10:40:55 +00:00
|
|
|
{% else %}
|
|
|
|
{{ slot.kind.label }}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2015-10-16 17:53:02 +00:00
|
|
|
{% endfor %}
|
2016-09-18 10:40:55 +00:00
|
|
|
{% if forloop.last %}
|
|
|
|
<td colspan="{{ timetable.rooms|length }}"></td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2015-10-16 17:53:02 +00:00
|
|
|
</table>
|