From d70ded18c218d75912e5260879cb394e57e59443 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Sun, 19 Feb 2023 09:11:44 -0500 Subject: [PATCH] Added head_styles Jinja block to base view template head section to allow for page specific style injections. Continuing work on the re-design and clean-up of the dashboard view. --- powerdnsadmin/templates/base.html | 1 + powerdnsadmin/templates/dashboard.html | 39 +++++++++++++------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/powerdnsadmin/templates/base.html b/powerdnsadmin/templates/base.html index 4f050c9..08c1099 100644 --- a/powerdnsadmin/templates/base.html +++ b/powerdnsadmin/templates/base.html @@ -17,6 +17,7 @@ {% if SETTING.get('custom_css') %} {% endif %} + {% block head_styles %}{% endblock %} {% endblock %} diff --git a/powerdnsadmin/templates/dashboard.html b/powerdnsadmin/templates/dashboard.html index 5242216..1409728 100755 --- a/powerdnsadmin/templates/dashboard.html +++ b/powerdnsadmin/templates/dashboard.html @@ -180,7 +180,8 @@ -
+ +
{% for boxId in custom_boxes.order %}
@@ -195,6 +196,7 @@ {% endif %}
+
@@ -213,18 +215,33 @@
+
+ {% endfor %}
+
+ - + + + + {% endblock %} +{% block head_styles %} + +{% endblock %} + {% block extrascripts %}