Bug 33478: Make styles apply per notice

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Aleisha Amohia 2023-10-19 04:11:09 +00:00 committed by Katrin Fischer
parent e6b0eba92f
commit c6cb14b3c6
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -39,7 +39,8 @@
[% SET slips = [{content => slip, is_html => !plain, style => style }] %]
[% END %]
[% FOR slip IN slips %]
[% IF slip.style %]<style>[% slip.style | $raw %]</style>[% END %]
[% IF slip.style %]<style>[% slip.style.replace('[^{]+{', '#slip_' _ slip.id _ ' {') | $raw %]</style>[% END %]
<div id="slip_[% slip.id | html %]">
[% UNLESS slip.is_html %]
<pre>
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %]
@ -47,6 +48,7 @@
[% ELSE %]
[% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %]
[% END %]
</div>
[% IF slips.size > 1 && !loop.last%]<div class="pagebreak"></div>[% END %]
[% END %]