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.html.twig

85 lines
3.2 KiB
Twig
Raw Normal View History

2018-05-09 22:24:08 +00:00
<div class="table-responsive">
<table class="table">
<thead>
<tr>
2018-06-15 11:17:45 +00:00
<th class="w-40 md:w-48 block">Date</th>
2018-05-09 22:24:08 +00:00
{% if not talk_page %}
2018-06-15 11:17:45 +00:00
<th>Talk</th>
2018-05-09 22:24:08 +00:00
{% endif %}
<th>Event</th>
{% if not upcoming %}
2018-06-15 11:17:45 +00:00
<th class="w-32">Feedback</th>
2018-05-09 22:24:08 +00:00
{% endif %}
</tr>
</thead>
<tbody>
2018-05-27 21:02:34 +00:00
{% for talk in talks %}
<tr>
2018-06-15 11:17:45 +00:00
<td class="w-40 md:w-48 whitespace-no-wrap xl:whitespace-normal">
2018-05-27 21:02:34 +00:00
{{ talk.event.date|date(talk.event.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if talk.event.time is defined %}
<div class="text-xs text-grey-dark">
{{ talk.event.time }}
</div>
{% endif %}
</td>
{% if not talk_page %}
2018-06-15 11:17:45 +00:00
<td class="whitespace-no-wrap xl:whitespace-normal">
2018-05-27 21:02:34 +00:00
{% if talk.talk.url is not empty %}
2018-05-28 23:33:00 +00:00
<a href="{{ talk.talk.url }}" class="link">
2018-05-27 21:02:34 +00:00
{{ talk.talk.title }}
</a>
{% else %}
2018-05-28 23:33:00 +00:00
{{ talk.talk.title }}
2018-05-27 21:02:34 +00:00
{% endif %}
<div class="text-xs text-grey-dark">
{% if talk.talk.type %}
{{ talk.talk.type }}
{% else %}
{{ talk.event.type|default('Talk') }}
{% endif %}
</div>
</td>
{% endif %}
<td>
{% if talk.event.website is not empty %}
2018-05-28 23:33:00 +00:00
<a href="{{ talk.event.website }}" class="link">
2018-05-27 21:02:34 +00:00
{{ talk.event.name }}
</a>
{% else %}
{{ talk.event.name }}
{% endif %}
{% if talk.event.location is defined %}
<div class="text-xs text-grey-dark">
{{ talk.event.location }}
</div>
{% endif %}
</td>
{% if not upcoming %}
<td>
{% if talk.event.joindin and talk.event.date <= 'today'|date('Y-m-d') %}
<a
href="{{ talk.event.joindin }}"
2018-05-28 23:33:00 +00:00
class="button no-underline"
2018-05-27 21:02:34 +00:00
title="Read or leave feedback for this talk"
>
<i class="fa fa-comment-o"></i> joind.in
</a>
{% endif %}
</td>
{% endif %}
</tr>
2018-05-09 22:24:08 +00:00
{% endfor %}
</tbody>
</table>
</div>