From 816af1693501663fc97778a7dff465c7085560d5 Mon Sep 17 00:00:00 2001 From: Waldek Date: Wed, 23 Dec 2020 06:49:18 +0100 Subject: [PATCH] did not display "master" when no users are connected --- templates/hblink_table_gradient.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/hblink_table_gradient.html b/templates/hblink_table_gradient.html index ad70b96..10c7484 100644 --- a/templates/hblink_table_gradient.html +++ b/templates/hblink_table_gradient.html @@ -15,7 +15,7 @@ {% for _master in _table['MASTERS'] %} - + {% if _table['MASTERS'][_master]['PEERS']|length >0 %} {{_master}}
{{_table['MASTERS'][_master]['REPEAT']}}
@@ -46,6 +46,7 @@ {% endfor %} + {% endif %} {% endfor %} {% else %} @@ -98,8 +99,8 @@ {{ _openbridge}}
Net ID: {{ _table['OPENBRIDGES'][_openbridge]['NETWORK_ID'] }} - {% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] %}({{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] }}: {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][1] }} >> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][2] }}) {% endfor %} - + {% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] %}({{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] }}: {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][1] }} >> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][2] }}) {% endfor %} + {% endfor %} {% endif %}