sito-hackit-17/talks/_templates/grid.html

51 lines
1.3 KiB
HTML
Raw Normal View History

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-19 00:14:33 +02:00
border-collapse: unset;
2017-05-06 03:24:17 +02:00
}
.talk-grid > thead th:first-child {
max-width: 5em;
}
td.talk {
border: 1px solid;
2017-05-19 00:14:33 +02:00
border-radius: 0.3em;
2017-05-06 03:24:17 +02:00
}
2017-05-19 00:14:33 +02:00
.talk-grid tr { line-height: 1em; }
2017-05-22 16:13:15 +02:00
.talk-grid tr:hover {
background-color: rgb(152, 14, 14);
background-color: rgba(152, 14, 14, 0.79);
}
2017-05-19 00:14:33 +02:00
.talk-grid td:first-child { font-size: 60%; }
2017-05-06 03:24:17 +02:00
</style>
2017-05-22 16:13:15 +02:00
2017-05-06 03:24:17 +02:00
<table class="talk-grid">
<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] %}
{% if talk == None %}
<td></td>
2017-05-18 18:43:31 +02:00
{% elif not talk.skip %}
2017-05-06 03:24:17 +02:00
<td class="talk" rowspan="{{talk.duration // timestep}}">
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: #}