-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschedule.njk
45 lines (39 loc) · 1.13 KB
/
schedule.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
layout: "page.njk"
title: "Schedule"
---
<table>
<thead>
<tr>
{% for roomId, cell in schedule.head %}
<th>
<div class='td-title'>{{cell.title}}</div>
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for timeslotId, row in schedule.body %}
<tr>
{% for roomId, cell in row %}
{% if cell.type == "heading" %}
<th>
<div class='td-title'>{{cell.title}}</div>
</th>
{% elif cell.session.isPlenumSession %}
<td colspan="5">
<div class='td-title'>{{cell.session.title}}</div>
</td>
{% else %}
<td>
<a class='td-title' href="{{cell.session.link}}">{{cell.session.title}}</a>
{% for speaker in cell.speakers %}
<a class='td-subtitle' href="{{speaker.link}}">{{speaker.fullName}}</div>
{% endfor %}
</td>
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>