From 9d511f51991895562a1a47f7d8c938e4f035e08e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 21 Aug 2023 12:34:43 +0000 Subject: [PATCH] Bug 34307: (follow-up) Use template wrapper for title tag This patch updates the title tag to use a wrapper too, since Bug 33906 is in the process of getting fixed. The patch also removes an extra tag: Only the translatable string needs the span, not the entire line. --- .../en/includes/wrapper-staff-tool-plugin.inc | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc index f1edb79495..cc25eebf6e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/wrapper-staff-tool-plugin.inc @@ -1,19 +1,22 @@ [% USE raw %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( ! method ) %] -[% method = 'tool'; %] + [% method = 'tool'; %] [% END %] - - [% IF ( plugin_title ) %][% plugin_title | html %] › [% END %] - Plugins › +<title>[% FILTER collapse %] + [% IF ( plugin_title ) %] + [% plugin_title | html %] › + [% END %] + [% t("Plugins") | html %] › [% IF ( method == 'tool' ) %] - Tools + [% t("Tools") | html %] [% ELSE %] - Administration - [% END %] - › Koha - + [% t("Administration") | html %] + [% END %] › + [% t("Koha") | html %] + [% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -35,7 +38,7 @@ Plugins [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] - [% IF ( plugin_title ) %][% plugin_title | html %][% ELSE %]Plugin[% END %] + [% IF ( plugin_title ) %][% plugin_title | html %][% ELSE %]Plugin[% END %] [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %] -- 2.30.2