grid.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <table class="talk-grid rooms-{{-rooms|length}}">
  2. <thead>
  3. <tr>
  4. <th></th>
  5. {% for room in rooms %}
  6. <th>{{room}}</th>
  7. {% endfor %}
  8. </tr>
  9. </thead>
  10. <tbody>
  11. {% for time in range (mintime, maxtime, timestep) %}
  12. <tr>
  13. <td>{{time//60}}:{{ "%02d" % (time % 60)}}</td>
  14. {% for talk in times[time / timestep * timestep] %}
  15. {% if not loop.first and talk.room == '*' %}
  16. {# skip: covered by colspan #}
  17. {% elif talk == None %}
  18. <td></td>
  19. {% elif not talk.skip %}
  20. <td id="t-cell-{{talk.id}}" class="talk
  21. {% if talk.room == '*' -%}allrooms{%-endif-%}
  22. {% for t in talk.tags -%} tag-{{t|replace(' ', '_')}} {%endfor-%}
  23. "
  24. rowspan="{{talk.duration // timestep}}"
  25. {% if talk.room == '*' %}colspan="{{rooms|length}}"{%endif%}>
  26. <a href="#talk-{{talk.id}}"
  27. title="{{talk.tags|join(",")}}"
  28. >{{talk.title}}</a>
  29. </td>
  30. {% endif %}
  31. {% endfor %}
  32. </tr>
  33. {% endfor %}
  34. </tbody>
  35. </table>
  36. {# vim: set ft=jinja: #}