You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/09/15 15:06:19 UTC

[incubator-ponymail-foal] branch master updated: Add private marker to non-chatty displays

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new e9e560c  Add private marker to non-chatty displays
e9e560c is described below

commit e9e560c80ecd5ed778ab10ab823b685484d43dc6
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Sep 15 10:06:14 2021 -0500

    Add private marker to non-chatty displays
---
 webui/js/source/render-email.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/webui/js/source/render-email.js b/webui/js/source/render-email.js
index e309ab8..7086bf0 100644
--- a/webui/js/source/render-email.js
+++ b/webui/js/source/render-email.js
@@ -79,6 +79,11 @@ async function render_email(state, json) {
     let text = new HTML('pre', {}, fixup_quotes(json.body));
     div.inject(text);
     
+    // Private text?
+    if (json.private === true) {
+      text.style.backgroundImage = "url(images/private.png)";
+    }
+    
     
     let toolbar = new HTML('div', {class: 'toolbar'});