Move table styling into a component

This commit is contained in:
Oliver Davies 2017-11-28 12:35:49 +00:00
parent eaa7959c87
commit 178dc634e9
4 changed files with 29 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<tr class="{{ loop.index is odd ? 'bg-grey-lightest' }}">
<td class="p-2 border-t">
<tr>
<td>
{{ row.event.date|date(row.event.fuzzy_date ? 'F Y' : 'j F Y') }}
{% if row.event.time is defined %}
@ -10,7 +10,7 @@
</td>
{% if not talk_page %}
<td class="p-2 border-t">
<td>
{% if row.talk.url is not empty %}
<a href="{{ row.talk.url }}">
{{ row.talk.title }}
@ -29,7 +29,7 @@
</td>
{% endif %}
<td class="p-2 border-t">
<td>
{% if row.event.website is not empty %}
<a href="{{ row.event.website }}">
{{ row.event.name }}
@ -46,7 +46,7 @@
</td>
{% if not upcoming %}
<td class="p-2 border-t">
<td>
{% if row.event.feedback and row.event.date <= today %}
<a href="{{ row.event.feedback }}"
class="button"