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/_partials/talks-table.twig

64 lines
2.4 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-19 11:59:35 +00:00
<th class="column-date">Date</th>
{% if not hide_talk %}<th>Talk</th>{% endif %}
<th class="column-event">Event</th>
{% if not hide_feedback %}<th class="column-feedback">Feedback</th>{% endif %}
2017-03-06 20:39:47 +00:00
</tr>
</thead>
<tbody>
{% for event in events %}
<tr>
2017-03-19 11:59:35 +00:00
<td class="column-date">
2017-03-06 20:39:47 +00:00
{{ event.date|date('j F Y') }}
2017-03-19 09:11:09 +00:00
{% if event.time %}
<small class="talk-type">
{{ event.time }}
</small>
{% endif %}
2017-03-06 08:16:34 +00:00
</td>
2016-10-27 06:08:45 +00:00
2017-03-19 11:59:35 +00:00
{% if not hide_talk %}
2017-03-06 20:39:47 +00:00
<td>
<a href="{{ event.talk.url }}">
{{ event.talk.title }}
</a>
2017-03-14 08:18:57 +00:00
{% if event.talk.type %}
<small class="talk-type">
{{ event.talk.type }}
</small>
{% endif %}
2017-03-06 20:39:47 +00:00
</td>
{% endif %}
2017-03-19 11:59:35 +00:00
<td class="column-event">
{% if event.url %}<a href="{{ event.url }}">{% endif %}
2017-03-06 20:39:47 +00:00
{{ event.title }}
{% if event.url %}</a>{% endif %}
2017-03-14 08:11:30 +00:00
{% if event.location %}
<small class="event-location">
{{- event.location -}}
</small>
{% endif %}
2017-03-06 20:39:47 +00:00
</td>
2017-03-14 08:01:54 +00:00
2017-03-19 11:59:35 +00:00
{% if not hide_feedback -%}
<td class="column-feedback">
2017-03-19 09:11:09 +00:00
{% 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>
{%- endif %}
2017-03-06 20:39:47 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>