added page titles

v1.18.x
Julian Lam 8 years ago
parent 6533fa066d
commit 31996f9377

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

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

Loading…
Cancel
Save