oliverdavies.uk/source/_includes/talks-table-row.html.twig

60 lines
1.7 KiB
Twig
Raw Normal View History

2017-11-28 12:35:49 +00:00
<tr>
2018-01-13 08:42:55 +00:00
<td class="whitespace-no-wrap">
2017-10-27 19:21:16 +00:00
{{ row.event.date|date(row.event.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if row.event.time is defined %}
2017-11-09 22:44:30 +00:00
<div class="text-xs text-grey-dark">
2017-10-27 19:21:16 +00:00
{{ row.event.time }}
2017-11-09 22:44:30 +00:00
</div>
2017-10-27 19:21:16 +00:00
{% endif %}
</td>
{% if not talk_page %}
2018-01-13 08:42:55 +00:00
<td class="whitespace-no-wrap">
2017-10-27 21:55:09 +00:00
{% if row.talk.url is not empty %}
<a href="{{ row.talk.url }}">
{{ row.talk.title }}
</a>
{% else %}
{{ row.talk.title }}
{% endif %}
2017-10-27 19:21:16 +00:00
2017-11-09 22:44:30 +00:00
<div class="text-xs text-grey-dark">
2017-11-07 17:56:04 +00:00
{% if row.talk.type %}
{{ row.talk.type }}
{% else %}
{{ row.event.type|default('Talk') }}
{% endif %}
2017-11-09 22:44:30 +00:00
</div>
2017-10-27 19:21:16 +00:00
</td>
{% endif %}
2018-01-13 08:42:55 +00:00
<td class="whitespace-no-wrap">
2017-10-27 19:21:16 +00:00
{% 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 %}
2017-11-09 22:44:30 +00:00
<div class="text-xs text-grey-dark">
2017-10-27 19:21:16 +00:00
{{ row.event.location }}
2017-11-09 22:44:30 +00:00
</div>
2017-10-27 19:21:16 +00:00
{% endif %}
</td>
{% if not upcoming %}
2018-01-13 08:42:55 +00:00
<td class="whitespace-no-wrap">
2017-10-27 19:21:16 +00:00
{% if row.event.feedback and row.event.date <= today %}
2017-11-09 22:44:30 +00:00
<a href="{{ row.event.feedback }}"
class="button"
title="Read or leave feedback for this talk">
2017-10-27 19:21:16 +00:00
<i class="fa fa-comment-o"></i> joind.in
</a>
{% endif %}
</td>
{% endif %}
</tr>