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:
parent
e6b0eba92f
commit
c6cb14b3c6
1 changed files with 3 additions and 1 deletions
|
@ -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 %]
|
||||
|
||||
|
|
Loading…
Reference in a new issue