From 7b6cde549b1689e40007bdacc62d8e6b340484b1 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Tue, 27 Sep 2022 02:37:07 +0100 Subject: [PATCH] move alert section to header.html and get side-menu working. I move the alert section to the /layouts/header.html template because it was easier to get it to render between the logged-in user's site header and the site's 'normal' header. The site's side-menu (for logged-in users) still needs stuff adding to it -- and tweaking -- but the base style, layout and whatnot is in place. --- templates/layouts/header.html | 163 +++++++++++++++++++++++++--------- 1 file changed, 123 insertions(+), 40 deletions(-) diff --git a/templates/layouts/header.html b/templates/layouts/header.html index 692e3d8..4d221a3 100644 --- a/templates/layouts/header.html +++ b/templates/layouts/header.html @@ -1,44 +1,127 @@ -
- {% if roles.logged-in %} - Dashboard - Edit Account - {% if roles.administrator %} - Site Settings - {% endif %} -
- - -
- {% endif %} -
-
- {% ifequal system-data.first.enable-site-logo 1 %} - {{system-data.first.site-name}} - {% endifequal %} -

{{system-data.first.site-name}}

+{% if roles.logged-in %} +
+ + +
+{% endif %} -
- -
+
+
+
+ + +
+
-
+{% endif %} + +
+ {% if alert %} +
+ {{alert | safe}} +
+ {% endif %} + +
+ {% ifequal system-data.first.enable-site-logo 1 %} + {{system-data.first.site-name}} + {% endifequal %} +

{{system-data.first.site-name}}

+
+ +
+ +
+