mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
notif unread class
This commit is contained in:
@@ -1015,7 +1015,7 @@ var bcrypt = require('bcrypt'),
|
|||||||
return parseInt(b.datetime, 10) - parseInt(a.datetime, 10);
|
return parseInt(b.datetime, 10) - parseInt(a.datetime, 10);
|
||||||
}).map(function(notif) {
|
}).map(function(notif) {
|
||||||
notif.datetimeISO = utils.toISOString(notif.datetime);
|
notif.datetimeISO = utils.toISOString(notif.datetime);
|
||||||
notif.readClass = !notif.read ? 'unread' : '';
|
notif.readClass = !notif.read ? 'label-warning' : '';
|
||||||
|
|
||||||
return notif;
|
return notif;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user