2018-01-12 03:55:42 +00:00
|
|
|
|
2017-09-27 13:46:13 +00:00
|
|
|
{% load lca2018_tags %}
|
2018-01-10 15:45:43 +00:00
|
|
|
{% load waffle_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>
|
2017-12-03 04:23:46 +00:00
|
|
|
{% with timetable|day_has_tracks:timetable.day as has_tracks %}
|
|
|
|
{% if has_tracks %}
|
|
|
|
<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>
|
2017-01-10 10:31:18 +00:00
|
|
|
{% endwith %}
|
2017-12-03 04:23:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
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>
|
2018-01-10 15:45:43 +00:00
|
|
|
{% flag "session_chair" %}
|
|
|
|
{% if slot.sessions %}
|
|
|
|
<div>
|
|
|
|
{% for session in slot.sessions.all %}
|
2018-01-12 03:55:42 +00:00
|
|
|
<em>Session chair:
|
2018-01-10 15:45:43 +00:00
|
|
|
{% if not session.chair %}
|
|
|
|
<a href="{% url "schedule_session_detail" session.id %}">Volunteer! 🙋</a>
|
|
|
|
{% elif session.chair.user == request.user %}
|
2018-01-12 03:55:42 +00:00
|
|
|
<a href="{% url "schedule_session_detail" session.id %}"><strong>You!</strong></a>
|
|
|
|
{% endif %}</em>
|
2018-01-10 15:45:43 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endflag %}
|
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 %}
|
2017-12-24 03:50:59 +00:00
|
|
|
{% if "break" in slot.kind.label %}
|
|
|
|
{% else %}
|
|
|
|
<span class="room">
|
2018-01-12 03:55:42 +00:00
|
|
|
{{ slot.rooms|join:", "}}<span class="endtime"> ends {{ slot.end|date:"h:iA" }}</span>
|
2017-12-24 03:50:59 +00:00
|
|
|
</span>
|
|
|
|
{% endif %}
|
2016-09-18 10:40:55 +00:00
|
|
|
</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>
|