From f502f47bb3b79aee2feafd46cbfe7778f3e1b585 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 6 Oct 2018 14:27:21 +1300 Subject: [PATCH] Add announcement toolbar --- pinaxcon/templates/flatpages/homepage.html | 10 ++++++++++ pinaxcon/templates/site_base.html | 1 + 2 files changed, 11 insertions(+) diff --git a/pinaxcon/templates/flatpages/homepage.html b/pinaxcon/templates/flatpages/homepage.html index f37851fd..7ffb5c65 100644 --- a/pinaxcon/templates/flatpages/homepage.html +++ b/pinaxcon/templates/flatpages/homepage.html @@ -12,6 +12,16 @@ integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgB crossorigin=""> {% endblock %} +{% block alert %} +{% if flatpage.content %} +
+
+ Important Announcement: {{ flatpage.content }} +
+
+{% endif %} +{% endblock %} + {% block body_out %}
diff --git a/pinaxcon/templates/site_base.html b/pinaxcon/templates/site_base.html index 28c143eb..dcd86aa2 100644 --- a/pinaxcon/templates/site_base.html +++ b/pinaxcon/templates/site_base.html @@ -44,6 +44,7 @@ {% block template_overrides %}{% endblock %}
+ {% block alert %}{% endblock %} {% block navbar %}{% include 'nav.html' %}{% endblock %}