oliverdavies.uk/source/_partials/talks-table.twig

45 lines
1.6 KiB
Twig
Raw Normal View History

2017-03-06 20:47:25 +00:00
<div class="table-responsive">
2017-03-14 08:01:54 +00:00
<table class="talk-event-table table table-striped">
2017-03-06 20:39:47 +00:00
<thead>
2016-10-27 06:08:45 +00:00
<tr>
2017-03-14 08:01:54 +00:00
<th class="date">Date</th>
2017-03-06 20:39:47 +00:00
{% if show_talk %}<th>Talk</th>{% endif %}
<th>Event</th>
2017-03-14 08:01:54 +00:00
<th class="feedback">Feedback</th>
2017-03-06 20:39:47 +00:00
</tr>
</thead>
<tbody>
{% set events = reverse_order ? events|sortbyfield('date')|reverse : events|sortbyfield('date') %}
{% for event in events %}
<tr>
2017-03-14 08:01:54 +00:00
<td class="date">
2017-03-06 20:39:47 +00:00
{{ event.date|date('j F Y') }}
2017-03-06 08:16:34 +00:00
</td>
2016-10-27 06:08:45 +00:00
2017-03-06 20:39:47 +00:00
{% if show_talk %}
<td>
<a href="{{ event.talk.url }}">
{{ event.talk.title }}
</a>
</td>
{% endif %}
<td>
{% if event.website %}<a href="{{ event.website }}">{% endif %}
{{ event.title }}
{% if event.website %}</a>{% endif %}
</td>
2017-03-14 08:01:54 +00:00
<td class="feedback">
{% if event.talk.joindin %}
<a href="{{ event.talk.joindin }}" class="btn btn-primary" title="Read or leave feedback for this talk">
<i class="fa fa-comment-o"></i> joind.in
</a>
{% endif %}
</td>
2017-03-06 20:39:47 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>