From 1f53e721ef3f0cc5e7885e478f59c04497f197a7 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 2 May 2024 11:41:36 +0100 Subject: [PATCH] Bug 31097: Add classes, drop an ELSE, drop
Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../prog/en/includes/patron_messages.inc | 12 +++++---- .../bootstrap/en/modules/opac-reserve.tt | 26 +++++++------------ .../bootstrap/en/modules/opac-user.tt | 24 +++++++---------- 3 files changed, 26 insertions(+), 36 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc index 7df1808123..04b3401ebb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -71,16 +71,18 @@ Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | $raw | html_line_break %] [% ELSE %] [% FOREACH restriction IN patron.restrictions %] +
+ [% IF restriction.expiration %] [% restriction.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] - [% IF restriction.comment %] - [% restriction.type.display_text | html %]: [% restriction.comment | html_line_break %]
- [% ELSE %] - [% restriction.type.display_text | html %]
- [% END %] +
+ + [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [%- restriction.comment | html_line_break -%][%- END -%] + +
[% END %] [% END %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 5ef54f9a73..8666fa2f12 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -58,23 +58,17 @@ Restriction added by overdues process [% debarred_comment.remove('OVERDUES_PROCESS ') | html_line_break %] [% ELSE %] [% FOR restriction IN logged_in_user.restrictions %] - [% IF restriction.comment %] - [% restriction.type.display_text | html %]: [% restriction.comment | html_line_break %], frozen until: - [% IF restriction.expiration %] - [% restriction.expiration | $KohaDates %] - [% ELSE %] - Indefinite - [% END %] -
- [% ELSE %] - [% restriction.type.display_text | html %], frozen until: - [% IF restriction.expiration %] - [% restriction.expiration | $KohaDates %] - [% ELSE %] - Indefinite - [% END %] -
+
+ [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [% restriction.comment | html_line_break %], frozen until: + + [%- IF restriction.expiration -%] + [%- restriction.expiration | $KohaDates -%] + [%- ELSE -%] + Indefinite + [%- END -%] + [% END %] +
[% END %] [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 84fbd6be40..8942e50a96 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -175,23 +175,17 @@ Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %] [% ELSE %] [% FOR restriction IN logged_in_user.restrictions %] - [% IF restriction.comment %] - [% restriction.type.display_text | html %]: [% restriction.comment | html_line_break %], frozen until: - [% IF restriction.expiration %] - [% restriction.expiration | $KohaDates %] - [% ELSE %] +
+ [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [% restriction.comment | html_line_break %], frozen until: + + [%- IF restriction.expiration -%] + [%- restriction.expiration | $KohaDates -%] + [%- ELSE -%] Indefinite - [% END %] -
- [% ELSE %] - [% restriction.type.display_text | html %], frozen until: - [% IF restriction.expiration %] - [% restriction.expiration | $KohaDates %] - [% ELSE %] - Indefinite - [% END %] -
+ [%- END -%] +
[% END %] +
[% END %] [% END %] -- 2.39.5