1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 11:16:58 -05:00

Allow Cluster Bar Hiding

This commit is contained in:
deathbybandaid 2020-12-10 12:19:56 -05:00
parent afed209051
commit d5c7a1ea47
2 changed files with 16 additions and 8 deletions

View File

@ -62,14 +62,16 @@
</div>
<hr align="center" width="100%">
{% set locations = fhdhr.device.cluster.get_cluster_dicts_web() %}
{% if locations %}
<div>
{% for location in locations %}
<button class="pull-left" onclick="OpenLink('{{ location["base_url"] }}')">{{ location["name"] }}</a></button>
{% endfor %}
</div>
<hr align="center" width="100%">
{% if fhdhr.config.dict["web_ui"]["cluster_bar"] %}
{% set locations = fhdhr.device.cluster.get_cluster_dicts_web() %}
{% if locations %}
<div>
{% for location in locations %}
<button class="pull-left" onclick="OpenLink('{{ location["base_url"] }}')">{{ location["name"] }}</a></button>
{% endfor %}
</div>
<hr align="center" width="100%">
{% endif %}
{% endif %}
{% set retmessage = request.args.get('retmessage', default=None) %}

View File

@ -10,5 +10,11 @@
"config_file": true,
"config_web": true
}
,
"cluster_bar":{
"value": true,
"config_file": true,
"config_web": true
}
}
}