Don't show feedback links for future events
This commit is contained in:
parent
040cc805b2
commit
8ac0bcade6
|
@ -16,6 +16,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
{% set today = 'today'|date('Y-m-d') %}
|
||||||
{% for row in events %}
|
{% for row in events %}
|
||||||
<tr class="striped--near-white">
|
<tr class="striped--near-white">
|
||||||
<td class="pa2">
|
<td class="pa2">
|
||||||
|
@ -64,7 +65,7 @@
|
||||||
|
|
||||||
{% if not upcoming %}
|
{% if not upcoming %}
|
||||||
<td class="ph2">
|
<td class="ph2">
|
||||||
{% if row.date.feedback %}
|
{% if row.date.feedback and row.date.date <= today %}
|
||||||
<a
|
<a
|
||||||
href="{{ row.date.feedback }}"
|
href="{{ row.date.feedback }}"
|
||||||
class="bg-blue br2 pa2 white-90 no-underline dib dim"
|
class="bg-blue br2 pa2 white-90 no-underline dib dim"
|
||||||
|
|
Loading…
Reference in a new issue