diff --git a/templates/masters_table.html b/templates/masters_table.html new file mode 100644 index 0000000..978af6f --- /dev/null +++ b/templates/masters_table.html @@ -0,0 +1,55 @@ +
+ .: Masters status :.  +{% if _table['MASTERS']|length >0 %} + + + + + + + + + + + {% for _master in _table['MASTERS'] %} + {% if ((_table['MASTERS'][_master]['PEERS']|length==0 or _table['MASTERS'][_master]['PEERS']|length>0) and emaster==True) or (_table['MASTERS'][_master]['PEERS']|length>0 and emaster==False) %} + + + + + {% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].items() %} + + + + + + + + + + + + + + {% endfor %} + {% endif %} +{% endfor %} +
HB Protocol
Master Systems
Callsign (DMR Id)
Info
Time ConnectedSlotSourceDestination
{{_master}}
{{_table['MASTERS'][_master]['REPEAT']}}
{{ _cdata['CALLSIGN']}} + (Id: {{ _client }}) + + {% if _cdata['RX_FREQ'] == 'N/A' and _cdata['TX_FREQ'] == 'N/A' %} +    Type: IP Network
+ {% else %} +    Type: Radio ({{ _cdata['SLOTS'] }})
+ {% endif %} +    Soft_Ver: {{_cdata['SOFTWARE_ID'] }} +
   Hardware: {{_cdata['PACKAGE_ID'] }}
+
{{_cdata['LOCATION']}}
{{ _cdata['CONNECTED'] }}TS1{{ _cdata[1]['SUB']|safe }}{{ _cdata[1]['DEST']|safe }}
TS2{{ _cdata[2]['SUB']|safe }}{{ _cdata[2]['DEST']|safe }}
+{% else %} + + + + +
Waiting for data from the Server ...
+{% endif %} +