mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 06:09:57 +01:00
adding dedicated category edit page for ACP #2463
This commit is contained in:
@@ -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) {
|
||||
|
||||
1
src/views/admin/manage/category.tpl
Normal file
1
src/views/admin/manage/category.tpl
Normal file
@@ -0,0 +1 @@
|
||||
test {category.cid}
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user