From 94ccbe8100419e4c0f2a65b288744625c630e223 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Wed, 18 Aug 2021 17:11:14 +0300 Subject: [PATCH] notifications layout --- src/js/views/Notifications.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/js/views/Notifications.js b/src/js/views/Notifications.js index 3b58355c..8a3c2e42 100644 --- a/src/js/views/Notifications.js +++ b/src/js/views/Notifications.js @@ -22,7 +22,7 @@ export default class Notifications extends View { renderView() { return html` -
+

${t('notifications')}

${Object.keys(this.notifications).length === 0 ? html`

No notifications yet

@@ -30,15 +30,20 @@ export default class Notifications extends View { ${Object.keys(this.notifications).sort().reverse().map(k => { const notification = this.notifications[k]; return html` -

- ${iris.util.formatDate(new Date(notification.time))}
- - <${Identicon} str=${notification.from} width=30 />${' '} - <${Name} pub=${notification.from} /> - - ${notification.action === 'like' ? ' liked ' : ' replied to '} - your post -

+ `; })}