mirror of
https://github.com/iFargle/headscale-webui.git
synced 2025-12-14 10:59:47 +01:00
tset
This commit is contained in:
17
renderer.py
17
renderer.py
@@ -687,10 +687,6 @@ def render_routes():
|
||||
failover_title='<span class="card-title"><h4>Failover Routes</h4></span>'
|
||||
exit_title='<span class="card-title"><h4>Exit Routes</h4></span>'
|
||||
|
||||
# Set up the display code:
|
||||
enabled = "<i class='material-icons green-text text-lighten-2'>fiber_manual_record</i>"
|
||||
disabled = "<i class='material-icons red-text text-lighten-1'>fiber_manual_record</i>"
|
||||
|
||||
markup_pre = """
|
||||
<div class="row">
|
||||
<div class="col m1"></div>
|
||||
@@ -730,9 +726,8 @@ def render_routes():
|
||||
is_failover = False
|
||||
is_exit = False
|
||||
|
||||
|
||||
enabled = "<i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \'True\')' class='material-icons green-text text-lighten-2 tooltipped' data-tooltip='Click to disable'>fiber_manual_record</i>"
|
||||
disabled = "<i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \'False\')' class='material-icons red-text text-lighten-2 tooltipped' data-tooltip='Click to enable' >fiber_manual_record</i>"
|
||||
enabled = "<i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \"True\")' class='material-icons green-text text-lighten-2 tooltipped' data-tooltip='Click to disable'>fiber_manual_record</i>"
|
||||
disabled = "<i id='"+route["id"]+"' onclick='toggle_route_routes_page("+route["id"]+", \"False\")' class='material-icons red-text text-lighten-2 tooltipped' data-tooltip='Click to enable' >fiber_manual_record</i>"
|
||||
|
||||
# Set the displays:
|
||||
enabled_display = disabled
|
||||
@@ -786,6 +781,10 @@ def render_routes():
|
||||
is_failover = False
|
||||
is_exit = False
|
||||
|
||||
# Set up the display code:
|
||||
enabled = "<i class='material-icons green-text text-lighten-2'>fiber_manual_record</i>"
|
||||
disabled = "<i class='material-icons red-text text-lighten-1'>fiber_manual_record</i>"
|
||||
|
||||
# Set the displays:
|
||||
enabled_display = disabled
|
||||
primary_display = disabled
|
||||
@@ -839,6 +838,10 @@ def render_routes():
|
||||
is_failover = False
|
||||
is_exit = False
|
||||
|
||||
# Set up the display code:
|
||||
enabled = "<i class='material-icons green-text text-lighten-2'>fiber_manual_record</i>"
|
||||
disabled = "<i class='material-icons red-text text-lighten-1'>fiber_manual_record</i>"
|
||||
|
||||
# Set the displays:
|
||||
enabled_display = disabled
|
||||
primary_display = disabled
|
||||
|
||||
Reference in New Issue
Block a user