From 6cc5c0208a553b839807460c944bebe30de23416 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 6 Apr 2023 10:40:48 +0000 Subject: [PATCH] Bug 33429: Use template wrapper for breadcrumbs: Plugins This patch updates plugin management templates so that they use the new WRAPPER for displaying breadcrumbs. To test, apply the patch and test each page and its variations. Breadcrumbs should look correct, and each link should be correct. - In koha-conf.xml, look for "enable_plugins" - If this is set to 0, plugins are disabled: 0 - Navigate directly to /cgi-bin/koha/plugins/plugins-home.pl, which should say "Plugins disabled." Check the breadcrumbs on this page. - Enable plugins by changing the settimg in koha-conf.xml to 1 (a restart of services is required): 1 - Go to Administration -> Manage plugins - Test this page and the "Upload plugin" page. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../en/modules/plugins/plugins-disabled.tt | 28 ++++++++----------- .../prog/en/modules/plugins/plugins-home.tt | 23 ++++++--------- .../prog/en/modules/plugins/plugins-upload.tt | 28 ++++++++----------- 3 files changed, 30 insertions(+), 49 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt index 1b8c7c6911..c94a38348c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt @@ -1,3 +1,4 @@ +[% USE raw %] [% INCLUDE 'doc-head-open.inc' %] Upload plugin › Plugins › Tools › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -9,23 +10,16 @@ [% INCLUDE 'circ-search.inc' %] [% END %] -[% WRAPPER 'sub-header.inc' %] - -[% END %] + [% WRAPPER 'sub-header.inc' %] + [% WRAPPER breadcrumbs %] + [% WRAPPER breadcrumb_item %] + Plugins + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Plugins disabled + [% END %] + [% END #/ WRAPPER breadcrumbs %] + [% END #/ WRAPPER sub-header.inc %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt index 775c3f0bba..0ee44d36b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt @@ -13,22 +13,15 @@ [% END %] [% WRAPPER 'sub-header.inc' %] - -[% END %] + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Plugins + [% END %] + [% END #/ WRAPPER breadcrumbs %] +[% END #/ WRAPPER sub-header.inc %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt index 08f08d192b..96e74dc7f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt @@ -1,3 +1,4 @@ +[% USE raw %] [% INCLUDE 'doc-head-open.inc' %] Upload plugin › Plugins › Tools › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -9,23 +10,16 @@ [% INCLUDE 'circ-search.inc' %] [% END %] -[% WRAPPER 'sub-header.inc' %] - -[% END %] + [% WRAPPER 'sub-header.inc' %] + [% WRAPPER breadcrumbs %] + [% WRAPPER breadcrumb_item %] + Plugins + [% END %] + [% WRAPPER breadcrumb_item bc_active= 1 %] + Upload plugins + [% END %] + [% END #/ WRAPPER breadcrumbs %] + [% END #/ WRAPPER sub-header.inc %]
-- 2.39.5