diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-03-04 11:04:22 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-03-04 11:04:22 +0100 |
commit | cc533aa3cc3844f587451ae357573deb8ed3f62e (patch) | |
tree | 5e9de03566a04f92e5da14434df6347cc087d4f0 | |
parent | 16ef1ae7ac93f8d0cc2b9ae0ac82bdf7d4e99343 (diff) |
Set commands nav buttons as active
When loading any command view, its nav button becomes active.
-rw-r--r-- | ogcp/templates/actions/client_details.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/image_create.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/image_restore.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/legacy/log.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/mode.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/oglive.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/poweroff.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/reboot.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/session.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/wol.html | 2 |
10 files changed, 20 insertions, 0 deletions
diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index 102f333..f06fcda 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -1,6 +1,8 @@ {% extends parent %} {% import "bootstrap/wtf.html" as wtf %} +{% block nav_client %} active{% endblock %} +{% block nav_client_details %} active{% endblock %} {% block content %} <h1 class="m-5">{{_('Client details')}}</h1> diff --git a/ogcp/templates/actions/image_create.html b/ogcp/templates/actions/image_create.html index dc4c4a2..d549828 100644 --- a/ogcp/templates/actions/image_create.html +++ b/ogcp/templates/actions/image_create.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% block nav_image %} active{% endblock %} +{% block nav_image_create %} active{% endblock %} {% block content %} <h1 class="m-5">{{_('Create a partition image')}}</h1> diff --git a/ogcp/templates/actions/image_restore.html b/ogcp/templates/actions/image_restore.html index c8322e8..ddfe245 100644 --- a/ogcp/templates/actions/image_restore.html +++ b/ogcp/templates/actions/image_restore.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% block nav_image %} active{% endblock %} +{% block nav_image_restore %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} diff --git a/ogcp/templates/actions/legacy/log.html b/ogcp/templates/actions/legacy/log.html index 5442ad7..04427d5 100644 --- a/ogcp/templates/actions/legacy/log.html +++ b/ogcp/templates/actions/legacy/log.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% block nav_logs %} active{% endblock %} +{% block nav_logs_log %} active{% endblock %} {% block content %} <h1 class="m-5">{{_('Client log')}}</h1> diff --git a/ogcp/templates/actions/mode.html b/ogcp/templates/actions/mode.html index 7e7f39e..184e046 100644 --- a/ogcp/templates/actions/mode.html +++ b/ogcp/templates/actions/mode.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% block nav_setup %} active{% endblock %} +{% block nav_setup_set_bootmode %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html index 92c8687..cacba18 100644 --- a/ogcp/templates/actions/oglive.html +++ b/ogcp/templates/actions/oglive.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% block nav_setup %} active{% endblock %} +{% block nav_setup_set_oglive %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} diff --git a/ogcp/templates/actions/poweroff.html b/ogcp/templates/actions/poweroff.html index cc739d3..4f7713c 100644 --- a/ogcp/templates/actions/poweroff.html +++ b/ogcp/templates/actions/poweroff.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% block nav_power %} active{% endblock %} +{% block nav_power_poweroff %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} diff --git a/ogcp/templates/actions/reboot.html b/ogcp/templates/actions/reboot.html index 9a6a1bc..e8bc30d 100644 --- a/ogcp/templates/actions/reboot.html +++ b/ogcp/templates/actions/reboot.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% block nav_power %} active{% endblock %} +{% block nav_power_reboot %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html index 189ceb4..3bbeb10 100644 --- a/ogcp/templates/actions/session.html +++ b/ogcp/templates/actions/session.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% block nav_client %} active{% endblock %} +{% block nav_client_session %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} diff --git a/ogcp/templates/actions/wol.html b/ogcp/templates/actions/wol.html index 7ba014c..9a41a75 100644 --- a/ogcp/templates/actions/wol.html +++ b/ogcp/templates/actions/wol.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% block nav_power %} active{% endblock %} +{% block nav_power_wol %} active{% endblock %} {% block content %} {% set ip_list = form.ips.data.split(' ') %} |