mirror of
https://github.com/ShaYmez/HBMonv2.git
synced 2025-05-27 19:52:31 -04:00
remove table
This commit is contained in:
parent
f70ea2dfe4
commit
3b44c3c76e
@ -1,80 +1,4 @@
|
||||
{% include 'buttons.html' ignore missing %}
|
||||
<fieldset style="background-color:#f0f0f0f0;margin-left:15px;margin-right:15px;font-size:14px;border-top-left-radius: 10px; border-top-right-radius: 10px;border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;">
|
||||
<legend><b><font color="#000"> .: DMR Server activity :. </font></b></legend>
|
||||
{% if _table['MASTERS']|length >0 %}
|
||||
<table style="table-layout:fixed;font: 10pt arial, sans-serif;margin-top:4px;margin-bottom:4px;" width=100%>
|
||||
<tr style="height:30px;font: 10pt arial, sans-serif;{{ themec }}">
|
||||
<th style='width: 20%;'>Systems M&P</th>
|
||||
<th style='width: 40%;'>Source</th>
|
||||
<th style='width: 40%;'>Destination</th>
|
||||
</tr>
|
||||
{% for _master in _table['MASTERS'] %}
|
||||
{% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].items() %}
|
||||
{% if _cdata[1]['TS'] == True or _cdata[2]['TS'] == True %}
|
||||
<tr style="background-color:#f9f9f9f9;line-height:1.4;">
|
||||
{% if _cdata[1]['TRX'] == "RX" %}
|
||||
<td style="font-weight:bold; padding-left: 20px; text-align:left;color:#464646;">M: {{_master}}</td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#0d1a81;">{{ _cdata[1]['SUB']|safe }} [<span style="align-items: center;justify-content:center;font-size: 8pt;font-weight:600;color:brown;">TS {{ 1 if _cdata[1]['TS'] == True else 2 }}</span>]</td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#b5651d;">{{ _cdata[1]['DEST']|safe }}</td>
|
||||
{% endif %}
|
||||
{% if _cdata[2]['TRX'] == "RX" %}
|
||||
<td style="font-weight:bold; padding-left: 20px; text-align:left;color:#464646">M: {{_master}}</td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#0d1a81;">{{ _cdata[2]['SUB']|safe }} [<span style="align-items: center;justify-content:center;font-size: 8pt;font-weight:600;color:brown;">TS {{ 1 if _cdata[1]['TS'] == True else 2 }}</span>]</td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#b5651d;">{{ _cdata[2]['DEST']|safe }}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
<table style='width:100%; font: 13pt arial, sans-serif; margin-top:4px;margin-bottom:4px;'>
|
||||
<tr style='border:none; background-color:#f9f9f9f9;'>
|
||||
<td style='border:none;height:60px;'><font color=brown><b><center>Waiting for data from the DMR server ...</center></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endif %}
|
||||
{% for _peer, _pdata in _table['PEERS'].items() %}
|
||||
{% if _pdata[1]['TS'] == True or _pdata[2]['TS'] == True %}
|
||||
<tr style="background-color:#f9f9f9f9;line-height:1.4;">
|
||||
{% if _pdata[1]['TRX'] == "RX" %}
|
||||
<td style="font-weight:bold; padding-left: 20px; text-align:left;color:#464646;">P: {{_peer}} </td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#0d1a81;">{{ _pdata[1]['SUB']|safe }} [<span style="align-items: center;justify-content:center;font-size: 8pt;font-weight:600;color:brown;">TS {{ 1 if _pdata[1]['TS'] == True else 2 }}</span>]</td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#b5651d;">{{ _pdata[1]['DEST']|safe }}</td>
|
||||
{% endif %}
|
||||
{% if _pdata[2]['TRX'] == "RX" %}
|
||||
<td style="font-weight:bold; padding-left: 20px; text-align:left;color:#464646;">P: {{_peer}} </td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#0d1a81;">{{ _pdata[2]['SUB']|safe }} [<span style="align-items: center;justify-content:center;font-size: 8pt;font-weight:600;color:brown;">TS {{ 1 if _pdata[1]['TS'] == True else 2 }}</span>]</td>
|
||||
<td style="font: 9.5pt arial, sans-serif;font-weight: 600;color:#b5651d;">{{ _pdata[2]['DEST']|safe }}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<tr style="background-color:#f9f9f9;" height="2px"><td colspan=3><hr style="padding:0px; margin:0px;border:none;color:#f9f9f9;background-color:#f9f9f9;"></td></tr>
|
||||
{% if _table['OPENBRIDGES']|length >0 %}
|
||||
<tr style="height:30px;width:100%; font: 10pt arial, sans-serif;{{ themec }}">
|
||||
<th style='width: 20%;'>Systems OpenBridge</th>
|
||||
<th colspan=2 style='width: 80%;'>Active Incoming Calls</th>
|
||||
</tr>
|
||||
{% 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 %}
|
||||
<tr style="background-color:#f9f9f9f9;line-height:1.6;">
|
||||
<td style="font-weight:bold; padding-left: 20px; text-align:left;"> {{ _openbridge}} </td>
|
||||
<td colspan=2 style="background-color:#f9f9f9f9; font: 9pt arial, sans-serif; font-weight: 600; color:#464646;">
|
||||
{% for entry in _table['OPENBRIDGES'][_openbridge]['STREAMS'] if _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] == 'RX' %}[<span style="color:#008000;">{{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][0] }}</span>: <font color=#0065ff> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][1] }}</font> >> <font color=#b5651d> {{ _table['OPENBRIDGES'][_openbridge]['STREAMS'][entry][2] }}</font>] {% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</table>
|
||||
</fieldset>
|
||||
{% if _table['SETUP']['LASTHEARD'] == True %}
|
||||
{% include 'lastheard.html' ignore missing %}
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user