83 lines
3.2 KiB
Twig
83 lines
3.2 KiB
Twig
<div class="overflow-auto">
|
|
<table class="w-100 ba b--moon-gray">
|
|
<thead>
|
|
<tr class="striped--near-white">
|
|
<th class="w-20-l pa2 tl bg-white">Date</th>
|
|
|
|
{% if not talk_page %}
|
|
<th class="w-40-l pa2 tl bg-white">Talk</th>
|
|
{% endif %}
|
|
|
|
<th class="pa2 tl bg-white">Event</th>
|
|
|
|
{% if not upcoming %}
|
|
<th class="w4 pa2 tl bg-white">Feedback</th>
|
|
{% endif %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in events %}
|
|
<tr class="striped--near-white">
|
|
<td class="pa2">
|
|
{{ row.date.date|date(row.date.fuzzy_date ? 'F Y' : 'j F Y') }}
|
|
|
|
{% if row.date.time is defined %}
|
|
<small class="db black-70">
|
|
{{ row.date.time }}
|
|
</small>
|
|
{% endif %}
|
|
</td>
|
|
|
|
{% if not talk_page %}
|
|
<td class="pa2">
|
|
{% if row.date.talk_title is not defined %}
|
|
{% for talk in data.talks if talk.talk_id == row.date.talk_id %}
|
|
<a href="{{ talk.url }}">
|
|
{{ talk.title }}
|
|
</a>
|
|
{% endfor %}
|
|
{% else %}
|
|
{{ row.date.talk_title }}
|
|
{% endif %}
|
|
|
|
<small class="db black-70">
|
|
{{ row.date.type|default('Talk') }}
|
|
</small>
|
|
</td>
|
|
{% endif %}
|
|
|
|
<td class="pa2">
|
|
{% if row.event.website is not empty %}
|
|
<a href="{{ row.event.website }}">
|
|
{{ row.event.name }}
|
|
</a>
|
|
{% else %}
|
|
{{ row.event.name }}
|
|
{% endif %}
|
|
|
|
{% if row.event.location is defined %}
|
|
<small class="db black-70">
|
|
{{ row.event.location }}
|
|
</small>
|
|
{% endif %}
|
|
</td>
|
|
|
|
{% if not upcoming %}
|
|
<td class="ph2">
|
|
{% if row.date.feedback %}
|
|
<a
|
|
href="{{ row.date.feedback }}"
|
|
class="bg-blue br2 pa2 white-90 no-underline dib dim"
|
|
title="Read or leave feedback for this talk">
|
|
<i class="fa fa-comment-o mr1"></i>
|
|
joind.in
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|