xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
3c44b9ae768d6eebafb6249514b40228fbee4b22
parent
e068a8f9df97792c470bf5ce84104891c1fa3bee
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-09-06 03:00
add star and attachment icon labels

Diffstat

M _locales/en/messages.json 2 ++
M content/js/message.js 4 ++--

2 files changed, 4 insertions, 2 deletions


diff --git a/_locales/en/messages.json b/_locales/en/messages.json

@@ -7,6 +7,8 @@
    7     7 	"edit": {"message": "edit as new"},
    8     8 	"viewClassic": {"message": "view in classic reader"},
    9     9 	"viewSource": {"message": "view source"},
   -1    10 	"star": {"message": "star"},
   -1    11 	"attachment": {"message": "attachment"},
   10    12 	"junk": {"message": "This is junk"},
   11    13 	"to": {"message": "to"},
   12    14 	"toggleQuote": {"message": "-- toggle quote --"},

diff --git a/content/js/message.js b/content/js/message.js

@@ -53,7 +53,7 @@ export default function(msg, expanded) {
   53    53 
   54    54 	var e = h('article', {'class': expanded ? 'message is-expanded' : 'message', 'id': `msg-${msg.id}`, 'tabindex': -1}, [
   55    55 		h('header', {'class': 'message__header'}, [
   56    -1 			h('button', {'class': 'star', 'aria-pressed': msg.flagged, 'data-action': 'toggleFlagged'}, [util.createIcon('star')]),
   -1    56 			h('button', {'class': 'star', 'aria-pressed': msg.flagged, 'data-action': 'toggleFlagged'}, [util.createIcon('star', _('star'))]),
   57    57 			...util.parseContacts([msg.author]).map(author => h('a', {
   58    58 				'class': 'message__author',
   59    59 				'href': `mailto:${author.email}`,
@@ -68,7 +68,7 @@ export default function(msg, expanded) {
   68    68 				...util.parseContacts(msg.bccList).map(r => h('a', {'href': `mailto:${r.email}`, 'class': 'message__recipients__bcc'}, [r.name])),
   69    69 			]),
   70    70 			h('span', {'class': 'message__summary'}, [(msg.body || '').substring(0, 150)]),
   71    -1 			(msg.attachmentInfos || []).length ? util.createIcon('attachment') : null,
   -1    71 			(msg.attachmentInfos || []).length ? util.createIcon('attachment', _('attachment')) : null,
   72    72 			util.createDate(msg.date),
   73    73 			h('span', {'class': 'message__actions'}, [
   74    74 				canReplyAll