order notifies right [close #567]

This commit is contained in:
reality 2013-08-24 14:32:27 +00:00
parent 13ff92899c
commit 904b7d22d5
2 changed files with 3 additions and 3 deletions

View File

@ -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')
}); });
}); });
} }

View File

@ -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}