mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 06:52:59 +01:00
24 lines
549 B
JavaScript
24 lines
549 B
JavaScript
'use strict';
|
|
|
|
var user = require('../../user');
|
|
var helpers = require('../helpers');
|
|
|
|
var notificationsController = {};
|
|
|
|
notificationsController.get = function (req, res, next) {
|
|
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]]'}])
|
|
});
|
|
});
|
|
};
|
|
|
|
|
|
module.exports = notificationsController;
|