2012-08-30 16:26:41 +00:00
|
|
|
<table class="table table-bordered table-condensed">
|
2012-08-30 07:14:46 +00:00
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
{% for room in timetable.rooms %}
|
|
|
|
<th>{{ room.name }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% for row in timetable %}
|
|
|
|
<tr>
|
|
|
|
<td class="time">{{ row.time|date:"h:iA" }}</td>
|
|
|
|
{% for slot in row.slots %}
|
2012-12-14 09:26:28 +00:00
|
|
|
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
|
2012-08-31 02:26:37 +00:00
|
|
|
{% if slot.kind.label == "talk" %}
|
2012-09-14 05:17:32 +00:00
|
|
|
{% if not slot.content %}
|
2012-08-31 04:57:25 +00:00
|
|
|
{% else %}
|
2012-09-21 02:54:17 +00:00
|
|
|
<div class="title"><a href="{% url schedule_presentation_detail slot.content.pk %}">{{ slot.content.title }}</a></div>
|
2012-09-14 05:17:32 +00:00
|
|
|
<div class="speaker">{{ slot.content.speaker }}</div>
|
2012-08-31 04:57:25 +00:00
|
|
|
{% endif %}
|
2012-08-30 07:14:46 +00:00
|
|
|
{% else %}
|
2012-10-26 22:03:50 +00:00
|
|
|
{% if slot.content_override.raw %}
|
|
|
|
{{ slot.content_override.rendered|safe }}
|
2012-10-25 05:21:20 +00:00
|
|
|
{% else %}
|
|
|
|
{{ slot.kind.label }}
|
|
|
|
{% endif %}
|
2012-08-30 07:14:46 +00:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|