From 999c7e971bcc0b2918f3269947dafd7ccede2b23 Mon Sep 17 00:00:00 2001 From: Stephan Telling Date: Wed, 22 Feb 2017 10:02:02 +0100 Subject: [PATCH] show coming soon text for speakers, schedule and events. fix #93. --- src/program/templates/event_list.html | 4 ++++ src/program/templates/schedule_overview.html | 6 +++++- src/program/templates/speaker_list.html | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/program/templates/event_list.html b/src/program/templates/event_list.html index 7b9647fb..6729bdd1 100644 --- a/src/program/templates/event_list.html +++ b/src/program/templates/event_list.html @@ -1,6 +1,7 @@ {% extends 'program_base.html' %} {% block program_content %} +{% if event_list %}

An alphabetical list of all talks, workshops, keynotes and other events at {{ camp.title }}. @@ -21,4 +22,7 @@ {% endif %} {% endfor %} +{% else %} +

Events for {{ camp.title }} coming soon!

+{% endif %} {% endblock program_content %} diff --git a/src/program/templates/schedule_overview.html b/src/program/templates/schedule_overview.html index 8dbe2f1d..ad9172f8 100644 --- a/src/program/templates/schedule_overview.html +++ b/src/program/templates/schedule_overview.html @@ -1,6 +1,7 @@ {% extends 'schedule_base.html' %} {% block schedule_content %} +{% if eventinstances %} {% for day in camp.camp_days %} {{ day.lower.date|date:"D d/m" }}
@@ -18,6 +19,9 @@ {% endfor %}

- {% endfor %} +{% endfor %} +{% else %} +

Schedule for {{ camp.title }} coming soon!

+{% endif %} {% endblock schedule_content %} diff --git a/src/program/templates/speaker_list.html b/src/program/templates/speaker_list.html index 91640f9a..80855446 100644 --- a/src/program/templates/speaker_list.html +++ b/src/program/templates/speaker_list.html @@ -1,6 +1,7 @@ {% extends 'program_base.html' %} {% block program_content %} +{% if speaker_list %}

An alphabetical list of all speakers, workshop hosts and other event anchors at BornHack 2016. @@ -13,4 +14,7 @@ {% endfor %} +{% else %} +

Speakers for {{ camp.title }} coming soon!

+{% endif %} {% endblock program_content %}