updated display peers

This commit is contained in:
Waldek 2021-02-22 07:19:00 +01:00 committed by GitHub
parent 8caaf1b991
commit 9c2c41d2da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -116,6 +116,15 @@
<div style="text-align:left;font:9.5pt arial, sans-serif;font-weight:bold;margin-left:25px; margin-right:25px;line-height:1.6;white-space:normal;">
{% for _peer, _pdata in _table['PEERS'].items() %}
<span class="tooltip" style="border-bottom: 1px dotted white;{{'background-color:#98FB98; color:#464646;' if _table['PEERS'][_peer]['STATS']['CONNECTION'] == 'YES' else 'background-color:#ff0000; color:white;'}}"><b>&nbsp;&nbsp;{{_peer}}&nbsp;&nbsp;</b>
{% if _table['PEERS'][_peer]['STATS']['CONNECTION'] == 'YES' %}
<span class="tooltiptext" style="top:120%;left:50%;margin-left:-70%;width:100px;">
<center>&nbsp;&nbsp;<font color=white>Connected</font>&nbsp;&nbsp;</center>
</span>
{% else %}
<span class="tooltiptext" style="top:120%;left:50%;margin-left:-70%;width:100px;">
<center>&nbsp;&nbsp;<b><font color=white>Disconnected</font>&nbsp;&nbsp;</center>
</span>
{% endif %}
</span>&nbsp;
{% endfor %}
</div>