Node.js based forum software built for the modern web
adding dedicated category edit page for ACP #2463
Julian Lama091757aa010
diff --git a/src/controllers/admin.js b/src/controllers/admin.jsindex e3c0e615a7..365d4fa6b8 100644--- a/src/controllers/admin.js+++ b/src/controllers/admin.js@@ -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) {diff --git a/src/views/admin/manage/category.tpl b/src/views/admin/manage/category.tplnew file mode 100644index 0000000000..2fb9d362bb--- /dev/null+++ b/src/views/admin/manage/category.tpl@@ -0,0 +1 @@+test {category.cid}\ No newline at end of filediff --git a/src/views/config.json b/src/views/config.jsonindex 70ba11b3af..674719366d 100644--- a/src/views/config.json+++ b/src/views/config.json@@ -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",