From 12b6d792f873469bd4675fde6b9a9ad42a6f2439 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 24 Mar 2023 15:19:06 -1000 Subject: [PATCH] Bug 33336: Use a dedicated column for plugin status in plugins table In plugins table plugins/plugins-home.pl the status enable/disable is with the name, styled as a label. With new interface ENABLED is yellow, this looks weird. Also I bet this is bad for accessibility. I propose to move this info to a dedicated column. I use bootstrap classes bg-success and bg-warning like in about.pl Test plan: 1) Install some plugins 2) Go to Administration > Manage plugins 3) Check you see table with column status 4) Disable a plugin 5) Check you see 'Disabled' in status Signed-off-by: Laura Escamilla --- .../prog/en/modules/plugins/plugins-home.tt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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..4ecd40173b 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 @@ -129,6 +129,7 @@ Minimum Koha version Maximum Koha version Last updated + Status [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %] Actions [% END %] @@ -152,11 +153,6 @@ [% plugin.metadata.name | html %] - [% IF ( plugin.is_enabled ) %] - ENABLED - [% ELSE %] - DISABLED - [% END %] [% plugin.metadata.description | html %] @@ -178,6 +174,13 @@ [% plugin.metadata.minimum_version | html %] [% plugin.metadata.maximum_version | html %] [% plugin.metadata.date_updated | $KohaDates %] + + [% IF ( plugin.is_enabled ) %] + Enabled + [% ELSE %] + Disabled + [% END %] + [% IF ( CAN_user_plugins_configure || CAN_user_plugins_manage || CAN_user_plugins_report || CAN_user_plugins_tool ) %]
-- 2.30.2