2017-05-06 03:24:17 +02:00
|
|
|
<style>
|
|
|
|
.talk-grid {
|
2017-05-19 00:14:33 +02:00
|
|
|
table-layout: auto;
|
2017-05-06 03:24:17 +02:00
|
|
|
width: 100%;
|
2017-05-23 22:25:31 +02:00
|
|
|
border-collapse: collapse;
|
|
|
|
text-align: center;
|
2017-05-06 03:24:17 +02:00
|
|
|
}
|
|
|
|
.talk-grid > thead th:first-child {
|
|
|
|
max-width: 5em;
|
|
|
|
}
|
2017-05-23 22:25:31 +02:00
|
|
|
|
|
|
|
.talk-grid > thead th {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2017-05-23 23:46:19 +02:00
|
|
|
|
|
|
|
.rooms-4 .talk { width: 25%; }
|
|
|
|
.rooms-3 .talk { width: 33%; }
|
|
|
|
.rooms-2 .talk { width: 50%; }
|
|
|
|
.rooms-1 .talk { width: 100%; }
|
2017-05-06 03:24:17 +02:00
|
|
|
td.talk {
|
2017-05-23 22:25:31 +02:00
|
|
|
border: 1px solid #444;
|
|
|
|
padding: 4px;
|
2017-05-06 03:24:17 +02:00
|
|
|
}
|
2017-05-23 22:25:31 +02:00
|
|
|
|
|
|
|
td.talk > a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2017-05-19 00:14:33 +02:00
|
|
|
.talk-grid tr { line-height: 1em; }
|
2017-05-23 22:25:31 +02:00
|
|
|
|
|
|
|
.talk-grid tr:hover td:first-child {
|
2017-05-22 16:13:15 +02:00
|
|
|
background-color: rgb(152, 14, 14);
|
|
|
|
background-color: rgba(152, 14, 14, 0.79);
|
|
|
|
}
|
2017-05-23 22:25:31 +02:00
|
|
|
|
|
|
|
.talk-grid tr:hover td {
|
|
|
|
background-color: rgb(60, 22, 22)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-05-06 03:24:17 +02:00
|
|
|
</style>
|
2017-05-22 16:13:15 +02:00
|
|
|
|
2017-05-23 23:46:19 +02:00
|
|
|
<table class="talk-grid rooms-{{-rooms|length}}">
|
2017-05-06 03:24:17 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
{% for room in rooms %}
|
|
|
|
<th>{{room}}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for time in range (mintime, maxtime, timestep) %}
|
|
|
|
<tr>
|
2017-05-07 01:44:13 +02:00
|
|
|
<td>{{time//60}}:{{ "%02d" % (time % 60)}}</td>
|
2017-05-06 03:24:17 +02:00
|
|
|
{% for talk in times[time / timestep * timestep] %}
|
2017-05-23 23:44:15 +02:00
|
|
|
{% if not loop.first and talk.room == '*' %}
|
|
|
|
{# skip: covered by colspan #}
|
|
|
|
{% elif talk == None %}
|
2017-05-06 03:24:17 +02:00
|
|
|
<td></td>
|
2017-05-18 18:43:31 +02:00
|
|
|
{% elif not talk.skip %}
|
2017-05-24 11:33:36 +02:00
|
|
|
<td class="talk
|
|
|
|
{% if talk.room == '*' -%}allrooms{%-endif-%}
|
|
|
|
{% for t in talk.tags -%} tag-{{t|replace(' ', '_')}} {%endfor-%}
|
|
|
|
"
|
|
|
|
rowspan="{{talk.duration // timestep}}"
|
|
|
|
{% if talk.room == '*' %}colspan="{{rooms|length}}"{%endif%}>
|
2017-05-19 00:14:33 +02:00
|
|
|
<a href="#talk-{{talk.id}}"
|
|
|
|
title="{{talk.tags|join(",")}}"
|
|
|
|
>{{talk.title}}</a>
|
2017-05-06 03:24:17 +02:00
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{# vim: set ft=jinja: #}
|