From 8ac0bcade6651d88c6e261bb720cd823b4bd56bf Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 30 Sep 2017 16:54:57 +0100 Subject: [PATCH] Don't show feedback links for future events --- source/_includes/talks-table.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/_includes/talks-table.html.twig b/source/_includes/talks-table.html.twig index 9ba49347..d8624497 100644 --- a/source/_includes/talks-table.html.twig +++ b/source/_includes/talks-table.html.twig @@ -16,6 +16,7 @@ + {% set today = 'today'|date('Y-m-d') %} {% for row in events %} @@ -64,7 +65,7 @@ {% if not upcoming %} - {% if row.date.feedback %} + {% if row.date.feedback and row.date.date <= today %}