From 240bf86f7560b176be6c9c9fd5f4fe36a78f871e Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Thu, 13 Nov 2025 13:05:11 +0000 Subject: [PATCH] Bug 34631: (follow-up) Tidy additional-contents.tt --- .../en/modules/tools/additional-contents.tt | 70 ++++++++++--------- tools/additional-contents.pl | 8 +-- 2 files changed, 40 insertions(+), 38 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 2fa62fc6d82..4c9fcc842ed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -247,17 +247,17 @@ [% INCLUDE 'html-customization-help.inc' %] [% UNLESS my_branch_as_staff %] -
  • - - -
  • +
  • + + +
  • [% END %] [% UNLESS languages.size %]
  • @@ -417,9 +417,9 @@ [% SET default_localization = c.default_localization %] - [% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] - - [% END %] + [% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] + + [% END %] [% IF c.category == 'news' || c.category == 'pages' %] @@ -487,26 +487,28 @@ - [% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] -
    - Edit - -
    -
    - Delete -
    - [% END %] + [% UNLESS ( my_branch_as_staff && my_branch_as_staff != c.branchcode ) %] +
    + Edit + +
    +
    + Delete +
    + [% END %] [% END %] diff --git a/tools/additional-contents.pl b/tools/additional-contents.pl index 1f95900d983..a1e08787901 100755 --- a/tools/additional-contents.pl +++ b/tools/additional-contents.pl @@ -26,12 +26,12 @@ use Modern::Perl; use CGI qw ( -utf8 ); use Try::Tiny; use Array::Utils qw( array_minus ); -use C4::Auth qw(get_template_and_user); +use C4::Auth qw(get_template_and_user); use C4::Koha; use C4::Context; -use C4::Log qw( logaction ); -use C4::Output qw(output_html_with_http_headers output_and_exit_if_error); -use C4::Languages qw(getTranslatedLanguages); +use C4::Log qw( logaction ); +use C4::Output qw(output_html_with_http_headers output_and_exit_if_error); +use C4::Languages qw(getTranslatedLanguages); use Koha::DateUtils qw( dt_from_string output_pref ); use Koha::AdditionalContents; -- 2.34.1