From e55c96c8542779f68f0d9015d9aae92ef8689fa1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 7 Oct 2025 11:08:14 +0200 Subject: [PATCH] Bug 38739: Fix mana-report-search-result.inc --- .../mana/mana-report-search-result.inc | 176 ++++++++---------- 1 file changed, 81 insertions(+), 95 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc index 8edca6cc48a..21598281b06 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc @@ -27,104 +27,90 @@ › Mana Knowledge Base report search results -
-
-
-
-

Mana Knowledge Base report search results

+[% WRAPPER 'main-container.inc' aside='guided-reports-view' %] +

Mana Knowledge Base report search results

-
- [% IF statuscode == "200" AND reports %] - - - - - - - - - - [% UNLESS search_only %] - +
+ [% IF statuscode == "200" AND reports %] +
Report nameNotesType# of usersLast import Comments Actions
+ + + + + + + + + [% UNLESS search_only %] + + [% END %] + + + + [% FOREACH report IN reports %] + [% UNLESS report.cannotdisplay %] + [% IF report.nbofcomment > highWarned %] + [% SET tr_class = 'high-warned-row' %] + [% ELSIF report.nbofcomment > warned %] + [% SET tr_class = 'warned-row' %] + [% ELSIF report.nbofcomment > lowWarned %] + [% SET tr_class = 'highlighted-row' %] + [% ELSE %] + [% SET tr_class = '' %] + [% END %] + + - - - [% FOREACH report IN reports %] - [% UNLESS report.cannotdisplay %] - [% IF report.nbofcomment > highWarned %] - [% SET tr_class = 'high-warned-row' %] - [% ELSIF report.nbofcomment > warned %] - [% SET tr_class = 'warned-row' %] - [% ELSIF report.nbofcomment > lowWarned %] - [% SET tr_class = 'highlighted-row' %] - [% ELSE %] - [% SET tr_class = '' %] - [% END %] - - - - - - - - - [% UNLESS search_only %] - - [% END %] - + + + + + + + + [% UNLESS search_only %] + [% END %] - -
Report nameNotesType# of usersLast import Comments Actions
+ + [% IF ( report.report_name ) %] + [% report.report_name | html %] [% END %] -
- - [% IF ( report.report_name ) %] - [% report.report_name | html %] - [% END %] - - [% IF report.notes.length > 200 %] -
- [% report.notes.substr(0,200) | html %]... Show more -
-
- [% report.notes | html %] - Show less -
- [% ELSE %] - [% report.notes | html %] - [% END %] -
[% report.type | html %] - [% IF ( report.nbofusers ) %] - [% report.nbofusers | html %] - [% END %] - [% report.lastimport | $KohaDates %] - [% FOREACH comment IN report.comments %] - [% comment.message | html %] - ([% comment.nb | html %])
- [% END %] -
- -
+ [% IF report.notes.length > 200 %] +
+ [% report.notes.substr(0,200) | html %]... Show more +
+
+ [% report.notes | html %] + Show less +
+ [% ELSE %] + [% report.notes | html %] [% END %] +
[% report.type | html %] + [% IF ( report.nbofusers ) %] + [% report.nbofusers | html %] + [% END %] + [% report.lastimport | $KohaDates %] + [% FOREACH comment IN report.comments %] + [% comment.message | html %] + ([% comment.nb | html %])
+ [% END %] +
+ +
- [% ELSE %] -

- [% IF ( msg ) %] - [% msg | html %] (Status code: [% statuscode | html %]) - [% ELSE %] - No results found - [% END %] -

+ + [% END %] [% END %] -
-
-
- - -
- -
- + + + [% ELSE %] +

+ [% IF ( msg ) %] + [% msg | html %] (Status code: [% statuscode | html %]) + [% ELSE %] + No results found + [% END %] +

+ [% END %]
- - - [% INCLUDE 'intranet-bottom.inc' %] -
+[% END %] +[% INCLUDE 'intranet-bottom.inc' %] -- 2.34.1