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 2020/09/08 07:20:32 UTC

[incubator-ponymail-foal] 01/02: Mark private emails as such in chatty design

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

commit 745e918873a39f27316bd8030437b74448f0176c
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Sep 8 09:15:16 2020 +0200

    Mark private emails as such in chatty design
---
 webui/images/private.png        | Bin 0 -> 4102 bytes
 webui/js/ponymail.js            |   5 +++++
 webui/js/source/render-email.js |   5 +++++
 3 files changed, 10 insertions(+)

diff --git a/webui/images/private.png b/webui/images/private.png
new file mode 100644
index 0000000..d328d94
Binary files /dev/null and b/webui/images/private.png differ
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 48a1f59..c034727 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -2825,6 +2825,11 @@ async function render_email_chatty(state, json) {
     }
     let text = new HTML('pre', {class: 'chatty_body'}, chatty_body);
     div.inject(text);
+
+    // Private text?
+    if (json.private === true) {
+      text.style.backgroundImage = "url(images/private.png)";
+    }
     
     // Attachments?
     if (json.attachments && json.attachments.length > 0) {
diff --git a/webui/js/source/render-email.js b/webui/js/source/render-email.js
index 7377033..fe34da3 100644
--- a/webui/js/source/render-email.js
+++ b/webui/js/source/render-email.js
@@ -128,6 +128,11 @@ async function render_email_chatty(state, json) {
     }
     let text = new HTML('pre', {class: 'chatty_body'}, chatty_body);
     div.inject(text);
+
+    // Private text?
+    if (json.private === true) {
+      text.style.backgroundImage = "url(images/private.png)";
+    }
     
     // Attachments?
     if (json.attachments && json.attachments.length > 0) {