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 + } } }