added title to flagged posts page

This commit is contained in:
Barış Soner Uşaklı
2016-02-04 21:44:16 +02:00
parent eb8b6af7fb
commit b485b412a8
2 changed files with 8 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
"popular-month": "Popular topics this month",
"popular-alltime": "All time popular topics",
"recent": "Recent Topics",
"flagged-posts": "Flagged Posts",
"users/online": "Online Users",
"users/latest": "Latest Users",

View File

@@ -24,7 +24,13 @@ flagsController.get = function(req, res, next) {
if (err) {
return next(err);
}
res.render('admin/manage/flags', {posts: posts, next: stop + 1, byUsername: byUsername});
var data = {
posts: posts,
next: stop + 1,
byUsername: byUsername,
title: '[[pages:flagged-posts]]'
};
res.render('admin/manage/flags', data);
});
};