From b102d96437ff4cd918ba30a4f25fb9b58156c9b4 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
--- .../prog/en/includes/patron_messages.inc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 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 7df18081238..6be8f9e50e7 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 -%][%- END -%] + +
[% END %] [% END %]
-- 2.44.0