Commit 60ec7cd8 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: fixup! Render text/html as html on domsugar

parent 1cc7ed6a
......@@ -11,19 +11,19 @@
})
.onStateChange(function () {
var gadget = this,
header_text = "By " + gadget.state.author +
" on " + gadget.state.modification_date + ":",
header_text = "By <strong>" + gadget.state.author +
"</strong> on " + gadget.state.modification_date + ":",
header = domsugar("div", {
class: "slapos-event-discussion-message-header"
}, [
domsugar('p', {text: header_text})
domsugar('p', {html: header_text})
]);
if (gadget.state.content_type === 'text/html') {
return domsugar(gadget.element, {}, [
header,
domsugar('div', {
class: "slapos-event-discussion-message-body",
text: gadget.state.text_content
html: gadget.state.text_content
})
]);
}
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1000.58263.12906.59494</string> </value>
<value> <string>1001.26171.19762.42854</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1655128468.51</float>
<float>1659986314.17</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment