From 34a58d3410761027ca135431f72d1dabaea9bec8 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Sat, 6 Mar 2021 08:32:38 +0100 Subject: [PATCH] Add 'active' class to active nav item --- auth/assets/templates/authorized-clients.html.tpl | 2 +- auth/assets/templates/change-password.html.tpl | 2 +- auth/assets/templates/inc_nav.html.tpl | 9 ++++----- auth/assets/templates/profile.html.tpl | 2 +- auth/assets/templates/sessions.html.tpl | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/auth/assets/templates/authorized-clients.html.tpl b/auth/assets/templates/authorized-clients.html.tpl index 9a01c1c34..0ae4c7989 100644 --- a/auth/assets/templates/authorized-clients.html.tpl +++ b/auth/assets/templates/authorized-clients.html.tpl @@ -1,4 +1,4 @@ -{{ template "inc_header.html.tpl" . }} +{{ template "inc_header.html.tpl" set . "activeNav" "clients" }}
{{ template "inc_alerts.html.tpl" .alerts }}

Authorized clients

diff --git a/auth/assets/templates/change-password.html.tpl b/auth/assets/templates/change-password.html.tpl index 0d1770cce..b49847756 100644 --- a/auth/assets/templates/change-password.html.tpl +++ b/auth/assets/templates/change-password.html.tpl @@ -1,4 +1,4 @@ -{{ template "inc_header.html.tpl" . }} +{{ template "inc_header.html.tpl" set . "activeNav" "security" }}
{{ template "inc_alerts.html.tpl" .alerts }}

Change your password

diff --git a/auth/assets/templates/inc_nav.html.tpl b/auth/assets/templates/inc_nav.html.tpl index 177971bf4..ccbaeb901 100644 --- a/auth/assets/templates/inc_nav.html.tpl +++ b/auth/assets/templates/inc_nav.html.tpl @@ -15,20 +15,19 @@
{{ else if .user }}