From f3f35d7365e27459017b857d6947693db670fa6c Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Fri, 30 Nov 2018 13:38:44 -0600 Subject: [PATCH] =?UTF-8?q?updating=20table=20format=20=E2=80=93=20prepare?= =?UTF-8?q?=20for=20additional=20information?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/hblink_table.html | 32 +++++++------------------------- web_tables.py | 2 +- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/templates/hblink_table.html b/templates/hblink_table.html index efa67a5..0d6cc23 100755 --- a/templates/hblink_table.html +++ b/templates/hblink_table.html @@ -3,45 +3,27 @@ - - - - - - - + - - + - - - - - - + {% for _master in _table['MASTERS'] %} - + {% for _client, _cdata in _table['MASTERS'][_master]['PEERS'].iteritems() %} - - - - - - - - - + + + {% endfor %} {% endfor %} diff --git a/web_tables.py b/web_tables.py index f309d05..bcbcb13 100755 --- a/web_tables.py +++ b/web_tables.py @@ -67,7 +67,7 @@ OPCODE = { # Global Variables: CONFIG = {} -CTABLE = {'MASTERS': {}, 'PEERS': {}} +CTABLE = {'MASTERS': {}, 'PEERS': {}, 'OPENBRIDGES': {}} BRIDGES = {} BTABLE = {} BTABLE['BRIDGES'] = {}
HBP SystemClient Radio IDCallsignID/Callsign/Location
IP:Port/KeepAlives
FrequencyColorCodeLinkTSLocationPings ReceivedIPPortColorCode
LinkedTS
{{ _master}} {{ _master}}
{{ _client }}{{ _cdata['CALLSIGN'] }}{{ _cdata['TX_FREQ'] }}{{ _cdata['COLORCODE'] }}{{ _cdata['SLOTS'] }}{{ _cdata['LOCATION'] }}{{ _cdata['PINGS_RECEIVED'] }}{{ _cdata['IP'] }}{{ _cdata['PORT'] }}{{ _client }}, {{ _cdata['CALLSIGN'] }}, {{ _cdata['LOCATION'] }}
{{ _cdata['IP'] }}:{{ _cdata['PORT'] }} / {{ _cdata['PINGS_RECEIVED'] }}
TX: {{ _cdata['RX_FREQ'] }}
RX: {{ _cdata['TX_FREQ] }}
{{ _cdata['COLORCODE'] }}
{{ _cdata['SLOTS'] }}