forked from GitHub/dbot
order notifies right [close #567]
This commit is contained in:
parent
13ff92899c
commit
904b7d22d5
@ -26,7 +26,7 @@ var pages = function(dbot) {
|
|||||||
res.render('missing_notifies', {
|
res.render('missing_notifies', {
|
||||||
'name': dbot.config.name,
|
'name': dbot.config.name,
|
||||||
'user': user.primaryNick,
|
'user': user.primaryNick,
|
||||||
'notifies': notifies
|
'notifies': _.sortBy(notifies, 'time')
|
||||||
});
|
});
|
||||||
|
|
||||||
if(_.has(dbot.modules, 'log')) {
|
if(_.has(dbot.modules, 'log')) {
|
||||||
@ -49,7 +49,7 @@ var pages = function(dbot) {
|
|||||||
res.render('notifies', {
|
res.render('notifies', {
|
||||||
'name': dbot.config.name,
|
'name': dbot.config.name,
|
||||||
'server': server,
|
'server': server,
|
||||||
'notifies': notifies
|
'notifies': _.sortBy(notifies, 'time')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ block content
|
|||||||
th User
|
th User
|
||||||
th Message
|
th Message
|
||||||
tbody
|
tbody
|
||||||
for notify, key in notifies
|
for notify in notifies
|
||||||
tr
|
tr
|
||||||
td #{new Date(notify.time)}
|
td #{new Date(notify.time)}
|
||||||
td #{notify.channel}
|
td #{notify.channel}
|
||||||
|
Loading…
Reference in New Issue
Block a user