From d5c7a1ea471d9eed1463ee237eb8f7fafb18add9 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 10 Dec 2020 12:19:56 -0500 Subject: [PATCH] Allow Cluster Bar Hiding --- fHDHR_web/templates/base.html | 18 ++++++++++-------- fHDHR_web/web_ui_conf.json | 6 ++++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/fHDHR_web/templates/base.html b/fHDHR_web/templates/base.html index aae904c..4d52cbf 100644 --- a/fHDHR_web/templates/base.html +++ b/fHDHR_web/templates/base.html @@ -62,14 +62,16 @@
- {% set locations = fhdhr.device.cluster.get_cluster_dicts_web() %} - {% if locations %} -
- {% for location in locations %} - - {% endfor %} -
-
+ {% if fhdhr.config.dict["web_ui"]["cluster_bar"] %} + {% set locations = fhdhr.device.cluster.get_cluster_dicts_web() %} + {% if locations %} +
+ {% for location in locations %} + + {% endfor %} +
+
+ {% endif %} {% endif %} {% set retmessage = request.args.get('retmessage', default=None) %} diff --git a/fHDHR_web/web_ui_conf.json b/fHDHR_web/web_ui_conf.json index 9ab3a59..ab5413c 100644 --- a/fHDHR_web/web_ui_conf.json +++ b/fHDHR_web/web_ui_conf.json @@ -10,5 +10,11 @@ "config_file": true, "config_web": true } + , + "cluster_bar":{ + "value": true, + "config_file": true, + "config_web": true + } } }