From 95c5c49882b9f5f4bbbd90fc8d7c5708622db49f Mon Sep 17 00:00:00 2001 From: Waldek Date: Thu, 31 Dec 2020 15:41:57 +0100 Subject: [PATCH] Add files via upload --- templates/main_table.html | 110 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 templates/main_table.html diff --git a/templates/main_table.html b/templates/main_table.html new file mode 100644 index 0000000..98b622a --- /dev/null +++ b/templates/main_table.html @@ -0,0 +1,110 @@ +{% include 'buttons.html' ignore missing %} +
+ .: HBlink activity :.  +{% if _table['MASTERS']|length >0 %} + + + + + + + {% for _master in _table['MASTERS'] %} + {% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].items() %} + {% if _cdata[1]['TS'] == True or _cdata[2]['TS'] == True %} + + {% if _cdata[1]['TRX'] == "RX" %} + + + + {% endif %} + {% if _cdata[2]['TRX'] == "RX" %} + + + + {% endif %} + + {% endif %} + {% endfor %} + {% endfor %} + +{% else %} +
Systems M&PSourceDestination
M: {{_master}} (TS {{ 1 if _cdata[1]['TS'] == True else 2 }}){{ _cdata[1]['SUB']|safe }}{{ _cdata[1]['DEST']|safe }}M: {{_master}} {{ _cdata[2]['SUB']|safe }} [TS {{ 1 if _cdata[1]['TS'] == True else 2 }}]{{ _cdata[2]['DEST']|safe }}
+ + + +
Waiting for data from the HBLink server ...
+ {% endif %} + {% for _peer, _pdata in _table['PEERS'].items() %} + {% if _pdata[1]['TS'] == True or _pdata[2]['TS'] == True %} + + {% if _pdata[1]['TRX'] == "RX" %} + P: {{_peer}} (TS {{ 1 if _pdata[1]['TS'] == True else 2 }}) + {{ _pdata[1]['SUB']|safe }} + {{ _cdata[1]['DEST']|safe }} + {% endif %} + {% if _pdata[2]['TRX'] == "RX" %} + P: {{_peer}} ( TS {{ 1 if _pdata[1]['TS'] == True else 2 }} + {{ _pdata[2]['SUB']|safe }} + {{ _pdata[2]['DEST']|safe }} + {% endif %} + + {% endif %} + {% endfor %} +
+ +{% if _table['OPENBRIDGES']|length >0 %} + + Systems OPB + Active Incoming Calls + + {% for _openbridge in _table['OPENBRIDGES'] %} + {% set rx = namespace(value=0) %} + {% if _table['OPENBRIDGES'][_openbridge]['STREAMS']|length >0 %} + {% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] if _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0]=='RX' %} + {% set rx.value=1 %} + {% endfor %} + {% if rx.value == 1 %} + + {{ _openbridge}} + + {% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] if _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] == 'RX' %}[{{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] }}: {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][1] }} >> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][2] }}]  {% endfor %} + + + {% endif %} + {% endif %} + {% endfor %} +{% endif %} + +
+{% if _table['SETUP']['LASTHEARD'] == True %} + {% include 'lastheard.html' ignore missing %} +{% endif %} +
+ .: Connected to system Masters & Peers :.  + +{% if _table['MASTERS']|length >0 %} +
+
+
  MASTERS:
+
+ {% for _master in _table['MASTERS'] %} + {% if _table['MASTERS'][_master]['PEERS']|length >0 %} + {% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].items() %} + {{_cdata['CALLSIGN']}} ({{_master}})  + {% endfor %} + {% endif %} + {% endfor %} +
+{% endif %} +{% if _table['PEERS']|length >0 %} +
+
  PEERS:
+
+ {% for _peer, _pdata in _table['PEERS'].items() %} +  {{_pdata['CALLSIGN']}}  ({{_peer}})  + {% endfor %} +
+{% endif %} +
+
+