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