added page titles

This commit is contained in:
Julian Lam
2016-12-07 15:51:05 -05:00
parent 6533fa066d
commit 31996f9377
2 changed files with 7 additions and 2 deletions

View File

@@ -32,6 +32,9 @@
"chats": "Chats",
"chat": "Chatting with %1",
"flags": "Flags",
"flag-details": "Flag %1 Details",
"account/edit": "Editing \"%1\"",
"account/edit/password": "Editing password of \"%1\"",
"account/edit/username": "Editing username of \"%1\"",

View File

@@ -43,7 +43,8 @@ modsController.flags.list = function (req, res, next) {
res.render('flags/list', {
flags: flags,
hasFilter: !!Object.keys(filters).length,
filters: filters
filters: filters,
title: '[[pages:flags]]'
});
});
});
@@ -67,7 +68,8 @@ modsController.flags.detail = function (req, res, next) {
type_bool: ['post', 'user'].reduce(function (memo, cur) {
memo[cur] = results.flagData.type === cur;
return memo;
}, {})
}, {}),
title: '[[pages:flag-details, ' + req.params.flagId + ']]'
}));
});
};