mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-01-03 19:23:35 +01:00
syntax
This commit is contained in:
@@ -285,8 +285,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
|
||||
# Print the button for the Exit routes:
|
||||
if exit_route_found:
|
||||
routes = routes+"""
|
||||
<p
|
||||
routes = routes+""" <p
|
||||
class='waves-effect waves-light btn-small """+exit_enabled_color+""" lighten-2 tooltipped'
|
||||
data-position='top' data-tooltip='Click to """+exit_tooltip+"""'
|
||||
id='"""+machine["id"]+"""-exit'
|
||||
@@ -304,8 +303,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
if route["enabled"]:
|
||||
route_enabled = "green"
|
||||
route_tooltip = 'disable'
|
||||
routes = routes+"""
|
||||
<p
|
||||
routes = routes+""" <p
|
||||
class='waves-effect waves-light btn-small """+route_enabled+""" lighten-2 tooltipped'
|
||||
data-position='top' data-tooltip='Click to """+route_tooltip+"""'
|
||||
id='"""+route['id']+"""'
|
||||
@@ -313,7 +311,7 @@ def thread_machine_content(machine, machine_content, idx, all_routes):
|
||||
"""+route['prefix']+"""
|
||||
</p>
|
||||
"""
|
||||
routes = routes+"</li>"
|
||||
routes = routes+"</li>"
|
||||
|
||||
# Get machine tags
|
||||
tag_array = ""
|
||||
|
||||
Reference in New Issue
Block a user