diff --git a/elections2021/templates/elections2021/elections2021_questions_page.html b/elections2021/templates/elections2021/elections2021_questions_page.html index cbe0c32ff2f140fc5ac928391d3f9d9bd375182f..31e9b7dfaa2ab34b3c2bb08441fef3c3c51f8f9e 100644 --- a/elections2021/templates/elections2021/elections2021_questions_page.html +++ b/elections2021/templates/elections2021/elections2021_questions_page.html @@ -9,12 +9,16 @@ <section class="py-16"> <div class="para">{{ page.intro|richtext }}</div> - <div class="text-center py-16"> - <div id="progamswitch" class="switch mb-4"> - <a id="switch_myths" class="switch__item switch__item--active">mýty o koalici</a> - <a id="switch_elections" class="switch__item">otázky k volbám</a> + {% if page.myths and page.elections %} + <div class="text-center py-16"> + <div id="progamswitch" class="switch mb-4"> + <a id="switch_myths" class="switch__item switch__item--active">mýty o koalici</a> + <a id="switch_elections" class="switch__item">otázky k volbám</a> + </div> </div> - </div> + {% else %} + <div class="text-center py-8"></div> + {% endif %} {% if page.myths %} <div id="faq_myths" class="space-y-1 faq-accordeon">