- commit
- c62199bd17abe6f31879f6633f4f932e2d690c57
- parent
- a70496617eb5b78952ea8f9d63461a1fcd5614c3
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-08-12 08:49
display cc and bcc addresses
Diffstat
| M | content/main.html | 6 | ++++++ |
| M | src/js/message.js | 2 | ++ |
| M | src/scss/components/_message.scss | 10 | ++++++++++ |
3 files changed, 18 insertions, 0 deletions
diff --git a/content/main.html b/content/main.html
@@ -21,6 +21,12 @@ 21 21 {{#recipients}} 22 22 <a href="mailto:{{ email }}">{{ name }}</a> 23 23 {{/recipients}} -1 24 {{#cc}} -1 25 <a class="message__recipients__cc" href="mailto:{{ email }}">{{ name }}</a> -1 26 {{/cc}} -1 27 {{#bcc}} -1 28 <a class="message__recipients__bcc" href="mailto:{{ email }}">{{ name }}</a> -1 29 {{/bcc}} 24 30 </span> 25 31 <span class="message__summary">{{ summary }}</span> 26 32
diff --git a/src/js/message.js b/src/js/message.js
@@ -68,6 +68,8 @@ module.exports = function(msg, expanded) {
68 68 isEncrypted: msg.isEncrypted,
69 69 author: util.parseContacts([msg.author]),
70 70 recipients: util.parseContacts(msg.recipients),
-1 71 cc: util.parseContacts(msg.ccList),
-1 72 bcc: util.parseContacts(msg.bccList),
71 73 summary: (msg.body || '').substring(0, 150),
72 74 attachments: msg.attachmentInfos,
73 75 hasAttachments: (msg.attachmentInfos || []).length,
diff --git a/src/scss/components/_message.scss b/src/scss/components/_message.scss
@@ -100,6 +100,16 @@ 100 100 content: ", "; 101 101 } 102 102 } -1 103 .message__recipients__cc, -1 104 .message__recipients__bcc { -1 105 opacity: 0.5; -1 106 } -1 107 .message__recipients__cc::before { -1 108 content: "cc:" -1 109 } -1 110 .message__recipients__bcc::before { -1 111 content: "bcc:" -1 112 } 103 113 104 114 .message__actions { 105 115 position: relative;