From 904b7d22d56c623e80df6fa6588875a2a4345662 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 24 Aug 2013 14:32:27 +0000 Subject: [PATCH] order notifies right [close #567] --- modules/report/pages.js | 4 ++-- views/report/notifies.jade | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/report/pages.js b/modules/report/pages.js index f85bf1f..45aaecd 100644 --- a/modules/report/pages.js +++ b/modules/report/pages.js @@ -26,7 +26,7 @@ var pages = function(dbot) { res.render('missing_notifies', { 'name': dbot.config.name, 'user': user.primaryNick, - 'notifies': notifies + 'notifies': _.sortBy(notifies, 'time') }); if(_.has(dbot.modules, 'log')) { @@ -49,7 +49,7 @@ var pages = function(dbot) { res.render('notifies', { 'name': dbot.config.name, 'server': server, - 'notifies': notifies + 'notifies': _.sortBy(notifies, 'time') }); }); } diff --git a/views/report/notifies.jade b/views/report/notifies.jade index 1b4c04d..b88119e 100644 --- a/views/report/notifies.jade +++ b/views/report/notifies.jade @@ -13,7 +13,7 @@ block content th User th Message tbody - for notify, key in notifies + for notify in notifies tr td #{new Date(notify.time)} td #{notify.channel}