Bug 35285: Remove switch in notices.tt

We now wrap appropriately for non-html formatted messages as
part of the html_content method. This means we can remove the
case from members/notices.tt and rely on html_content doing
the right thing for notice previews.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2023-11-08 10:43:09 +00:00 committed by Katrin Fischer
parent 6b413acfc4
commit 74f9c57adf
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 0 additions and 5 deletions

View File

@ -1,6 +1,5 @@
[% USE raw %]
[% USE Asset %]
[% USE String %]
[% USE Koha %]
[% USE AuthorisedValues %]
[% USE Branches %]
@ -67,11 +66,7 @@
<tr>
<td>
<a class="notice-title" data-noticeid="[% QUEUED_MESSAGE.message_id | html %]" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber | uri %]&amp;noticeid=[% QUEUED_MESSAGE.message_id | uri %]">[% QUEUED_MESSAGE.subject | html %]</a>
[% IF QUEUED_MESSAGE.content_type.search('html') %]
<iframe class="notice" id="notice[% QUEUED_MESSAGE.message_id | html %]" srcdoc="[% QUEUED_MESSAGE.html_content | html %]"></iframe>
[% ELSE %]
<iframe class="notice" id="notice[% QUEUED_MESSAGE.message_id | html %]" srcdoc="[% QUEUED_MESSAGE.content | html | html_line_break %]"></iframe>
[% END %]
</td>
<td>
[% IF ( QUEUED_MESSAGE.message_transport_type == 'email' ) %]<span>email</span>