Replace html tags separately in sidebar html as it would be escaped otherwise

This commit is contained in:
shortcutme 2018-11-26 00:16:19 +01:00
parent 46e694a5c8
commit 5d0bf2e80b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -142,7 +142,7 @@ class UiWebsocketPlugin(object):
<li class='color-black'><span>{_[Total]}:</span><b>{peers_total}</b></li>
</ul>
</li>
"""))
""".replace("{local_html}", local_html)))
def sidebarRenderTransferStats(self, body, site):
recv = float(site.settings.get("bytes_recv", 0)) / 1024 / 1024
@ -491,7 +491,7 @@ class UiWebsocketPlugin(object):
body.append(_(u"""
<li>
<label>{_[Content publishing]} <small class='label-right'>{tag_privatekey}</small></label>
"""))
""".replace("{tag_privatekey}", tag_privatekey)))
# Choose content you want to sign
body.append(_(u"""