oliverdavies.uk/source/_includes/talks-table.html.twig

63 lines
2.1 KiB
Twig
Raw Normal View History

2017-09-04 23:27:07 +00:00
<div class="w-100 overflow-x-auto overflow-y-hidden">
2017-09-04 16:55:53 +00:00
<table class="w-100 ba b--moon-gray">
2017-07-11 00:08:32 +00:00
<thead>
2017-09-04 16:55:53 +00:00
<tr class="striped--light-gray">
2017-09-04 23:27:07 +00:00
<th class="w-20-l pa2 tl">Date</th>
2017-07-11 00:08:32 +00:00
{% if not talk_page %}
2017-09-04 23:27:07 +00:00
<th class="w-40-l pa2 tl">Talk</th>
2017-07-11 00:08:32 +00:00
{% endif %}
2017-09-04 16:55:53 +00:00
<th class="pa2 tl">Event</th>
2017-07-11 00:08:32 +00:00
{% if not upcoming %}
2017-09-04 23:27:07 +00:00
<th class="w4 pa2 tl">Feedback</th>
2017-07-11 00:08:32 +00:00
{% endif %}
</tr>
</thead>
<tbody>
{% for row in events %}
2017-09-05 19:22:34 +00:00
<tr>
2017-09-04 16:55:53 +00:00
<td class="pa2">
2017-09-05 19:22:34 +00:00
{{ row.date.date }}
2017-07-11 00:08:32 +00:00
2017-09-05 19:22:34 +00:00
{% if row.date.time is defined %}
<small class="db black-50">
{{ row.date.time }}
</small>
2017-07-11 00:08:32 +00:00
{% endif %}
</td>
{% if not talk_page %}
2017-09-04 16:55:53 +00:00
<td class="pa2">
2017-09-05 19:22:34 +00:00
{% if row.date.talk.title is not defined %}
{% for talk in data.talks if talk.id ends with '/' ~ row.date.talk ~ '.md' %}
<a href="{{ talk.url }}">
{{ talk.title }}
</a>
{% endfor %}
2017-07-11 00:08:32 +00:00
{% else %}
2017-09-05 19:22:34 +00:00
{{ row.date.talk.title }}
2017-07-11 00:08:32 +00:00
{% endif %}
</td>
{% endif %}
2017-09-04 16:55:53 +00:00
<td class="pa2">
2017-09-05 19:22:34 +00:00
{{ row.event.name }}
2017-07-11 00:08:32 +00:00
2017-09-05 19:22:34 +00:00
{% if row.event.location is defined %}
<small class="db black-50">
{{ row.event.location }}
</small>
{% endif %}
2017-07-11 00:08:32 +00:00
</td>
2017-09-05 19:22:34 +00:00
<td class="pa2">
feedback
</td>
2017-07-11 00:08:32 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>