From ad809140008cd7a1d9ed2cad0913bb52d6c81100 Mon Sep 17 00:00:00 2001 From: AJ Bowen Date: Wed, 27 Feb 2019 12:25:26 -0800 Subject: [PATCH] Also display 'status' for past events if there is no 'slides' field and 'status' field is present --- slides/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slides/index.py b/slides/index.py index 33caca57..43c25478 100755 --- a/slides/index.py +++ b/slides/index.py @@ -35,7 +35,10 @@ TEMPLATE=""" {% for item in past_workshops[:5] %} {{ item.title }} - {% if item.slides %}{% endif %} + {% if item.slides %} + {% else %} +

{{ item.status }}

+ {% endif %} {% if item.video %}
{% endif %}