From cc533aa3cc3844f587451ae357573deb8ed3f62e Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 4 Mar 2022 11:04:22 +0100 Subject: Set commands nav buttons as active When loading any command view, its nav button becomes active. --- ogcp/templates/actions/client_details.html | 2 ++ ogcp/templates/actions/image_create.html | 2 ++ ogcp/templates/actions/image_restore.html | 2 ++ ogcp/templates/actions/legacy/log.html | 2 ++ ogcp/templates/actions/mode.html | 2 ++ ogcp/templates/actions/oglive.html | 2 ++ ogcp/templates/actions/poweroff.html | 2 ++ ogcp/templates/actions/reboot.html | 2 ++ ogcp/templates/actions/session.html | 2 ++ ogcp/templates/actions/wol.html | 2 ++ 10 files changed, 20 insertions(+) (limited to 'ogcp/templates') 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 %}

{{_('Client details')}}

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 %}

{{_('Create a partition image')}}

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 %}

{{_('Client log')}}

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(' ') %} -- cgit v1.2.3-18-g5258