1
0
Fork 0
sito-hackit-17/talks/_templates/grid.html

69 lines
1.5 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-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-06 03:24:17 +02:00
td.talk {
2017-05-23 22:25:31 +02:00
width: 33%;
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-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: #}