This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_includes/talks-table.html.twig

81 lines
3 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 %}
{% set talk = false %}
{% set key = row.date.talk.id ?: row.date.talk %}
{% for item in row.talks if key == item.filename|split('.')|first %}
{% set talk = item %}
{% endfor %}
2017-09-04 16:55:53 +00:00
<tr class="striped--near-white">
<td class="pa2">
2017-07-11 00:08:32 +00:00
{{ row.date.date|date(row.date.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if row.date.time %}
2017-09-04 16:55:53 +00:00
<small class="db">{{ 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-07-11 00:08:32 +00:00
{% if row.date.talk.title is defined %}
{{ row.date.talk.title }}
{% else %}
2017-09-04 16:55:53 +00:00
<a href="{{ talk.url }}" class="blue">{{ talk.title }}</a>
2017-07-11 00:08:32 +00:00
{% endif %}
2017-09-04 16:55:53 +00:00
<small class="db">
2017-07-11 00:08:32 +00:00
{{ row.date.talk.type ?: talk.type }}
</small>
</td>
{% endif %}
2017-09-04 16:55:53 +00:00
<td class="pa2">
2017-07-11 00:08:32 +00:00
{% if row.event.website %}
2017-09-04 16:55:53 +00:00
<a href="{{ row.event.website }}" class="blue">
2017-07-11 00:08:32 +00:00
{{ row.event.name }}
</a>
{% else %}
{{ row.event.name }}
{% endif %}
2017-09-04 16:55:53 +00:00
<small class="db">
2017-07-11 00:08:32 +00:00
{{ row.event.location }}
</small>
</td>
{% if not upcoming %}
2017-09-04 23:27:07 +00:00
<td class="ph2">
2017-07-11 00:08:32 +00:00
{% if row.date.feedback %}
<a
href="{{ row.date.feedback }}"
2017-09-04 16:55:53 +00:00
class="bg-blue br2 pa2 white-90 no-underline dib dim"
2017-09-04 23:27:07 +00:00
title="Read or leave feedback for this talk">
2017-09-04 16:55:53 +00:00
<i class="fa fa-comment-o mr1"></i>
joind.in
2017-07-11 00:08:32 +00:00
</a>
{% endif %}
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</div>