]> git.koha-community.org Git - koha.git/commit
Bug 30287: (follow-up) Add content wrap matching send time
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 6 Nov 2023 14:00:21 +0000 (14:00 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 3 Jan 2024 15:03:42 +0000 (16:03 +0100)
commit1dc33325041b5c2f94bc0d7acdecb101de16b98c
tree64d124759158ec969e52da39fecfe36461665e02
parentebf8e267aca64be7ea8b0741f3d4b7d23a7a6dac
Bug 30287: (follow-up) Add content wrap matching send time

This patch adds a new method to the Koha::Notice::Message class to wrap
content in the same way we currently do at email send time. We then
update the notice preview to use this method so we're embedding
NoticeCSS into that iframe. This means the generated preview should now
exactly match how your notice will display in email clients including
any CSS you may have placed within NoticeCSS.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fixed typo in POD of html_content

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a09986ea51eb0104b006fac40d1dc7e2f6cdeeab)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Notice/Message.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt