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 <span> tag: Only the translatable string
needs the span, not the entire line.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-08-21 12:34:43 +00:00 committed by Tomas Cohen Arazi
parent a6ec493647
commit 62a757acd1
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1,19 +1,22 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% IF ( ! method ) %]
[% method = 'tool'; %]
[% method = 'tool'; %]
[% END %]
<title>
[% IF ( plugin_title ) %][% plugin_title | html %] &rsaquo; [% END %]
Plugins &rsaquo;
[% IF ( method == 'tool' ) %]
Tools
[% ELSE %]
Administration
<title>[% FILTER collapse %]
[% IF ( plugin_title ) %]
[% plugin_title | html %] &rsaquo;
[% END %]
&rsaquo; Koha
</title>
[% t("Plugins") | html %] &rsaquo;
[% IF ( method == 'tool' ) %]
[% t("Tools") | html %]
[% ELSE %]
[% t("Administration") | html %]
[% END %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
@ -35,7 +38,7 @@
<a href="/cgi-bin/koha/plugins/plugins-home.pl">Plugins</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
<span>[% IF ( plugin_title ) %][% plugin_title | html %][% ELSE %]<span>Plugin</span>[% END %]</span>
[% IF ( plugin_title ) %][% plugin_title | html %][% ELSE %]<span>Plugin</span>[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]