]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 4 Jan 2024 20:34:51 +0000 (20:34 +0000)
commit93b98dda145126ed3ceca810db2c760dbdc8853d
tree07b2379ce695727e7653bd794385e01d833625b2
parent0a1088372b2c39a7b32e79dfdc5e067c658b13a6
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>
(cherry picked from commit 1dc33325041b5c2f94bc0d7acdecb101de16b98c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Notice/Message.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt