Refactor talks to be a lot simpler

This commit is contained in:
Oliver Davies 2018-02-13 08:45:57 +00:00
parent 42fd848581
commit 607f56e8c7
75 changed files with 390 additions and 980 deletions

View file

@ -1,59 +0,0 @@
<tr>
<td>
{{ row.event.date|date(row.event.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if row.event.time is defined %}
<div class="text-xs text-grey-dark">
{{ row.event.time }}
</div>
{% endif %}
</td>
{% if not talk_page %}
<td>
{% if row.talk.url is not empty %}
<a href="{{ row.talk.url }}">
{{ row.talk.title }}
</a>
{% else %}
{{ row.talk.title }}
{% endif %}
<div class="text-xs text-grey-dark">
{% if row.talk.type %}
{{ row.talk.type }}
{% else %}
{{ row.event.type|default('Talk') }}
{% endif %}
</div>
</td>
{% endif %}
<td>
{% 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 %}
<div class="text-xs text-grey-dark">
{{ row.event.location }}
</div>
{% endif %}
</td>
{% if not upcoming %}
<td>
{% if row.event.feedback and row.event.date <= today %}
<a href="{{ row.event.feedback }}"
class="button"
title="Read or leave feedback for this talk">
<i class="fa fa-comment-o"></i> joind.in
</a>
{% endif %}
</td>
{% endif %}
</tr>