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:
parent
6b413acfc4
commit
74f9c57adf
|
|
@ -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 %]&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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue