adding dedicated category edit page for ACP #2463

This commit is contained in:
Julian Lam
2014-12-29 21:37:55 -05:00
parent 6b95b28db7
commit a091757aa0
3 changed files with 11 additions and 0 deletions

View File

@@ -119,7 +119,15 @@ function getStatsForSet(set, field, callback) {
}
adminController.categories.get = function(req, res, next) {
categories.getCategoryData(req.params.category_id, function(err, category) {
if (err) {
return next(err);
}
res.render('admin/manage/category', {
category: category
});
});
};
adminController.categories.getAll = function(req, res, next) {

View File

@@ -0,0 +1 @@
test {category.cid}

View File

@@ -2,6 +2,8 @@
"custom_mapping": {
"^\/?$": "home",
"^admin?$": "admin/general/dashboard",
"^admin/manage/categories/[\\d]+$": "admin/manage/category",
"^users/sort-posts": "users",
"^users/latest": "users",
"^users/sort-reputation": "users",