HBmonitor/templates/bridge_table.html

57 lines
2.6 KiB
HTML
Raw Normal View History

2020-07-02 05:41:20 -04:00
2019-09-17 15:12:27 -04:00
<fieldset style="background-color:#e0e0e0e0;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">&nbsp;.: Bridge status :.&nbsp;</font></b></legend>
2020-07-02 05:41:20 -04:00
{% if _table['BRIDGES']|length == 0 and _table['SETUP']['BRIDGES'] != False %}
<table style='width:100%; font: 13pt arial, sans-serif'>
<tr style='border:none; background-color:#f9f9f9f9;'>
<td style='border:none;height:60px;'><font color=brown><b><center>Waiting for data from the HBLink server ...</center></b></td>
</tr>
</table>
{% elif _table['SETUP']['BRIDGES'] == False %}
<table style='width:100%; font: 13pt arial, sans-serif'>
<tr style='border:none; background-color:#f9f9f9f9;'>
<td style='border:none;height:60px;'><font color=brown><b><center>BRIDGES display is disabled by setup</center></b></td>
</tr>
</table>
{% else %}
{% for _bridge, _bridge_data in _table['BRIDGES'].items() %}
2019-09-17 15:12:27 -04:00
<table style="width:100%; font: 10pt arial, sans-serif">
<colgroup>
<col style="width: 10%" />
<col style="width: 5%" />
<col style="width: 5%" />
<col style="width: 10%" />
<col style="width: 10%" />
<col style="width: 10%" />
2020-03-02 14:09:10 -05:00
<col style="width: 20%" />
<col style="width: 30%" />
2019-09-17 15:12:27 -04:00
</colgroup>
<h4 align="left">{{ _bridge }}</h4>
<tr style="width:100%; font: 10pt arial, sans-serif; background-color:#6A7D8E; color:white">
<th>System</th>
<th>Slot</th>
2020-03-02 14:10:05 -05:00
<th>TG#</th>
2019-09-17 15:12:27 -04:00
<th>Status</th>
<th>Timeout</th>
<th>Timeout Action</th>
2020-03-02 14:10:05 -05:00
<th>Connect TG#</th>
<th>Disconnect TG#</th>
2019-09-17 15:12:27 -04:00
</tr>
2020-07-02 05:41:20 -04:00
{% for system, _system_data in _table['BRIDGES'][_bridge].items() %}
2019-10-25 06:33:44 -04:00
<tr style="background-color:#f9f9f9f9;">
2019-09-17 15:12:27 -04:00
<td>{{ system }}</td>
2020-07-02 05:41:20 -04:00
<td>{{ _table['BRIDGES'][_bridge][system]['TS'] }}</td>
<td>{{ _table['BRIDGES'][_bridge][system]['TGID'] }}</td>
<td style="background-color:#{{ _table['BRIDGES'][_bridge][system]['BGCOLOR'] }}; color:#{{ _table['BRIDGES'][_bridge][system]['COLOR'] }}">{{ _table['BRIDGES'][_bridge][system]['ACTIVE'] }}</td>
<td>{{ _table['BRIDGES'][_bridge][system]['EXP_TIME'] }}</td>
<td>{{ _table['BRIDGES'][_bridge][system]['TO_ACTION'] }}</td>
<td>{{ _table['BRIDGES'][_bridge][system]['TRIG_ON'] }}</td>
<td>{{ _table['BRIDGES'][_bridge][system]['TRIG_OFF'] }}</td>
2019-09-17 15:12:27 -04:00
</tr>
{% endfor %}
</table>
{% endfor %}
2020-07-02 05:41:20 -04:00
{% endif %}
2019-09-17 15:12:27 -04:00
</fieldset>
2020-07-02 05:41:20 -04:00