mirror of https://github.com/kf7eel/hbnet
template clean
This commit is contained in:
parent
38eae2e6ab
commit
a28fd43817
30
web/app.py
30
web/app.py
|
|
@ -1316,21 +1316,18 @@ By using this service, you agree not to do anything malicious. You agree to use
|
||||||
connected = Misc.query.filter_by(field_1='user_system_table_' + i.name).first()
|
connected = Misc.query.filter_by(field_1='user_system_table_' + i.name).first()
|
||||||
connected_list = ast.literal_eval(connected.field_2)
|
connected_list = ast.literal_eval(connected.field_2)
|
||||||
## print(connected_list)
|
## print(connected_list)
|
||||||
clients = '<strong>Self-care: </strong>'
|
clients = '''<div class="dropdown">
|
||||||
|
<button type="button" class="btn btn-success dropdown-toggle" data-bs-toggle="dropdown">
|
||||||
|
Self Care
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
'''
|
||||||
for s in connected_list.items():
|
for s in connected_list.items():
|
||||||
for t in s[1]:
|
for t in s[1]:
|
||||||
if str(current_user.username).upper() == t.upper():
|
if str(current_user.username).upper() == t.upper():
|
||||||
clients = clients + '''<a href="/bridge_status/''' + i.name + '''/''' + s[0] + '''"><button type="button" class="btn btn-secondary">''' + s[0] + '''</button></a>\n'''
|
clients = clients + '''<li><a class="dropdown-item" href="/bridge_status/''' + i.name + '''/''' + s[0] + '''"">''' + s[0] + '''</a></li>\n'''
|
||||||
## client_menu = '''
|
clients = clients + '''</ul>
|
||||||
##<div class="dropdown">
|
</div>'''
|
||||||
## <button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown">
|
|
||||||
## Tools
|
|
||||||
## </button>
|
|
||||||
## <ul class="dropdown-menu">
|
|
||||||
## ''' + clients + '''
|
|
||||||
## </ul>
|
|
||||||
##</div>
|
|
||||||
##'''
|
|
||||||
|
|
||||||
tool_menu = '''
|
tool_menu = '''
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
|
@ -1351,9 +1348,12 @@ By using this service, you agree not to do anything malicious. You agree to use
|
||||||
''' + svr_status + '''
|
''' + svr_status + '''
|
||||||
<div style="max-width:200px; word-wrap:break-word; text-align: center;">''' + i.public_notes + '''</div>
|
<div style="max-width:200px; word-wrap:break-word; text-align: center;">''' + i.public_notes + '''</div>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
''' + clients + '''
|
<div class="row">
|
||||||
<p> </p>
|
<div class="col">
|
||||||
''' + tool_menu + '''
|
''' + clients + '''</div>
|
||||||
|
<div class="col">
|
||||||
|
''' + tool_menu + '''</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
<br />
|
<br />
|
||||||
<h4 style="text-align: center;">Updated every 10 seconds.</h4>
|
<h4 style="text-align: center;">Updated every 10 seconds.</h4>
|
||||||
|
|
||||||
|
<p style="text-align: center;"><a href="/generate_passphrase"><button type="button" class="btn btn-primary">Server(s)</button></a></p>
|
||||||
|
|
||||||
<table data-toggle="table" data-pagination="true" data-search="true" >
|
<table data-toggle="table" data-pagination="true" data-search="true" >
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue