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>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for row in timetable %}
|
|
|
|
<tr>
|
|
|
|
<td class="time">{{ row.time|date:"h:iA" }}</td>
|
|
|
|
{% 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>
|
|
|
|
{% endif %}
|
2016-12-08 08:56:43 +00:00
|
|
|
{% elif slot.kind.label == "shortbreak" %}
|
2016-09-18 10:40:55 +00:00
|
|
|
{% else %}
|
|
|
|
{% if slot.content_override.raw %}
|
|
|
|
{{ slot.content_override.rendered|safe }}
|
|
|
|
{% 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>
|