This commit is contained in:
barisusakli
2015-10-19 12:48:26 -04:00
parent d61ac000a8
commit f17ba88c0f
4 changed files with 52 additions and 9 deletions

View File

@@ -7,12 +7,13 @@ var user = require('../../user'),
var notificationsController = {};
notificationsController.get = function(req, res, next) {
user.notifications.getAll(req.uid, 40, function(err, notifications) {
user.notifications.getAll(req.uid, 0, 39, function(err, notifications) {
if (err) {
return next(err);
}
res.render('notifications', {
notifications: notifications,
nextStart: 40,
title: '[[pages:notifications]]',
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[pages:notifications]]'}])
});