feat: Hide addresses not in use
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s
Build Docker / Build SLDs Image (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-11-15 21:27:03 +11:00
parent ee49e8341c
commit 178b8ec597
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 10 additions and 3 deletions

View File

@ -29,6 +29,13 @@ def render(data,db_object):
hns = db_object['HNS']
btc = db_object['BTC']
eth = db_object['ETH']
if hns != "":
hns = "HNS: " + hns
if btc != "":
btc = "BTC: " + btc
if eth != "":
eth = "ETH: " + eth
bg_colour = db_object['bg_colour']
fg_colour = db_object['fg_colour']
text_colour = db_object['text_colour']

View File

@ -31,13 +31,13 @@
<div class="d-xl-flex align-items-xl-center right-align top-align" style="background: #f1ffff;border-radius: 10px;padding-top: 2%;padding-left: 2%;padding-bottom: 2%;width: 50%;position: absolute;padding-right: 2%;display: inline-flex;height: 15em;">
<div style="display: inline-block;">
<div>
<p style="font-size: 24px;">HNS: {{hns}}</p>
<p style="font-size: 24px;">{{hns}}</p>
</div>
<div>
<p style="font-size: 24px;">BTC: {{btc}}</p>
<p style="font-size: 24px;">{{btc}}</p>
</div>
<div>
<p style="font-size: 24px;">ETH: {{eth}}</p>
<p style="font-size: 24px;">{{eth}}</p>
</div>
</div>
</div>