small html code update

This commit is contained in:
Waldemar Ogonowski 2021-01-09 21:13:56 +01:00
parent 073116048f
commit 15355b99e5

View File

@ -86,7 +86,7 @@
<tr style="background-color:#f9f9f9f9;"><td>
<br>
<div style="text-align:left;"><span style="color:#464646;font-weight:600;line-height:1.4;">&nbsp;&nbsp;MASTERS:</span></div>
<div style="text-align:left;font:9pt arial, sans-serif;font-weight:bold;margin-left:25px; margin-right:25px;line-height:1.4;">
<div style="text-align:left;font:9pt arial, sans-serif;font-weight:bold;margin-left:25px; margin-right:25px;line-height:1.4;white-space:normal;">
{% for _master in _table['MASTERS'] %}
{% if _table['MASTERS'][_master]['PEERS']|length >0 %}
{% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].items() %}
@ -99,7 +99,7 @@
{% if _table['PEERS']|length >0 %}
<br>
<div style="text-align:left;"><span style="color:#464646;font-weight:600;line-height:1.4;">&nbsp;&nbsp;PEERS:</span></div>
<div style="text-align:left;font:9.5pt arial, sans-serif;font-weight:bold;margin-left:25px; margin-right:25px;line-height:1.4;">
<div style="text-align:left;font:9.5pt arial, sans-serif;font-weight:bold;margin-left:25px; margin-right:25px;line-height:1.4;white-space:normal;">
{% for _peer, _pdata in _table['PEERS'].items() %}
<span style="{{'background-color:#98FB98;color:#464646;' if _table['PEERS'][_peer]['STATS']['CONNECTION'] == 'YES' else 'background-color:#ff704d;color:white;'}}"><b>&nbsp;{{_pdata['CALLSIGN']}}&nbsp;</b></span>&nbsp;<span style="font:8pt arial,sans-serif;color:#464646">({{_peer}})</span>&nbsp;
{% endfor %}