From ae51ec27f0fd51ef9bf3e9ccbe3dd952fc640264 Mon Sep 17 00:00:00 2001
From: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Date: Thu, 15 Feb 2024 13:13:12 -0100
Subject: [PATCH] Bug 32693: Update tab_items

tab_items are now linktabs
tab_items are now styled active depending if the URL param 'tab' matches the tab name or not

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
index 4e916f75a3d..65c67426da5 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt
@@ -33,14 +33,14 @@
 
             [% WRAPPER tabs id= "abouttabs" %]
                 [% WRAPPER tabs_nav %]
-                    [% WRAPPER tab_item tabname= "about" bt_active= 1 %] <span>Server information</span> [% END %]
-                    [% WRAPPER tab_item tabname= "perl" %] <span>Perl modules</span> [% END %]
-                    [% WRAPPER tab_item tabname= "sysinfo" %] <span>System information</span> [% END %]
-                    [% WRAPPER tab_item tabname= "team" %] <span>Koha team</span> [% END %]
-                    [% WRAPPER tab_item tabname= "licenses" %] <span>Licenses</span> [% END %]
-                    [% WRAPPER tab_item tabname= "translations" %] <span>Translations</span> [% END %]
-                    [% WRAPPER tab_item tabname= "history" %] <span>Timeline</span> [% END %]
-                    [% WRAPPER tab_item tabname= "dedications" %] <span>Dedications</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "about" bt_active = tab == "about" %] <span>Server information</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "perl" bt_active = tab == "perl" %] <span>Perl modules</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "sysinfo" bt_active = tab == "sysinfo" %] <span>System information</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "team" bt_active = tab == "team" %] <span>Koha team</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "licenses" bt_active = tab == "licenses" %] <span>Licenses</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "translations" bt_active = tab == "translations" %] <span>Translations</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "history" bt_active = tab == "history" %] <span>Timeline</span> [% END %]
+                    [% WRAPPER tab_item linktab = 1 tabname = "dedications" bt_active = tab == "dedications" %] <span>Dedications</span> [% END %]
                 [% END %]
 
                 [% WRAPPER tab_panels %]
-- 
2.34.1