From aebf909dc6c885f801be2aedf44c808f82b13d26 Mon Sep 17 00:00:00 2001 From: Sli Date: Mon, 11 Nov 2024 00:45:49 +0100 Subject: [PATCH] Apply review comments --- core/templates/core/base.jinja | 34 ++++++++++--------- .../core/base/{menu.jinja => navbar.jinja} | 0 2 files changed, 18 insertions(+), 16 deletions(-) rename core/templates/core/base/{menu.jinja => navbar.jinja} (100%) diff --git a/core/templates/core/base.jinja b/core/templates/core/base.jinja index 9736f438..e7f915a0 100644 --- a/core/templates/core/base.jinja +++ b/core/templates/core/base.jinja @@ -44,30 +44,32 @@ {% block header %} {% if not popup %} {% include "core/base/header.jinja" %} + + {% block info_boxes %} +
+ {% set sith = get_sith() %} + {% if sith.alert_msg %} +
+ {{ sith.alert_msg|markdown }} +
+ {% endif %} + {% if sith.info_msg %} +
+ {{ sith.info_msg|markdown }} +
+ {% endif %} +
+ {% endblock %} + {% else %}
{{ user.get_display_name() }}
{% endif %} - {% block info_boxes %} -
- {% set sith = get_sith() %} - {% if sith.alert_msg %} -
- {{ sith.alert_msg|markdown }} -
- {% endif %} - {% if sith.info_msg %} -
- {{ sith.info_msg|markdown }} -
- {% endif %} -
- {% endblock %} {% endblock %} {% block nav %} {% if not popup %} - {% include "core/base/menu.jinja" %} + {% include "core/base/navbar.jinja" %} {% endif %} {% endblock %} diff --git a/core/templates/core/base/menu.jinja b/core/templates/core/base/navbar.jinja similarity index 100% rename from core/templates/core/base/menu.jinja rename to core/templates/core/base/navbar.jinja