projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13dbb27
)
E-Mails als HTML verschicken: im E-Mail-Journal als HTML anzeigen
author
Moritz Bunkus
<m.bunkus@linet.de>
Wed, 12 Jan 2022 10:58:46 +0000
(11:58 +0100)
committer
Moritz Bunkus
<m.bunkus@linet.de>
Wed, 12 Jan 2022 11:30:22 +0000
(12:30 +0100)
templates/webpages/email_journal/show.html
patch
|
blob
|
history
diff --git
a/templates/webpages/email_journal/show.html
b/templates/webpages/email_journal/show.html
index
20444a9
..
b484bc7
100644
(file)
--- a/
templates/webpages/email_journal/show.html
+++ b/
templates/webpages/email_journal/show.html
@@
-1,4
+1,4
@@
-[% USE HTML %][% USE L %][% USE LxERP %]
+[% USE HTML %][% USE L %][% USE LxERP %]
[%- USE P -%]
<h1>[% FORM.title %]</h1>
@@
-49,7
+49,13
@@
<tr class="listrow">
<th>[%- LxERP.t8("Body") %]</th>
- <td><pre>[% HTML.escape(SELF.entry.body) %]</pre></td>
+ <td>
+ [%- IF SELF.entry.headers.match('(?i)content-type:.*text/html') %]
+ [% P.restricted_html(SELF.entry.body) %]
+ [%- ELSE %]
+ <pre>[% HTML.escape(SELF.entry.body) %]</pre>
+ [%- END %]
+ </td>
</tr>
</table>