switching /admin/index to /admin/dashboard

v1.18.x
psychobunny 11 years ago
parent 341959be82
commit ed35e4bcef

@ -1,7 +1,7 @@
"use strict"; "use strict";
/*global define, ajaxify, app, socket, RELATIVE_PATH*/ /*global define, ajaxify, app, socket, RELATIVE_PATH*/
define('forum/admin/general/index', ['semver'], function(semver) { define('forum/admin/general/dashboard', ['semver'], function(semver) {
var Admin = {}; var Admin = {};
var updateIntervalId = 0; var updateIntervalId = 0;
Admin.init = function() { Admin.init = function() {

@ -53,7 +53,7 @@ adminController.home = function(req, res, next) {
if (err) { if (err) {
return next(err); return next(err);
} }
res.render('admin/general/index', { res.render('admin/general/dashboard', {
version: pkg.version, version: pkg.version,
notices: results.notices, notices: results.notices,
stats: results.stats stats: results.stats
@ -150,7 +150,7 @@ adminController.tags.get = function(req, res, next) {
return next(err); return next(err);
} }
res.render('admin/managetags', {tags: tags}); res.render('admin/manage/tags', {tags: tags});
}); });
}; };

@ -36,7 +36,7 @@ function apiRouter(middleware, controllers) {
} }
function addRoutes(router, middleware, controllers) { function addRoutes(router, middleware, controllers) {
router.get('/general/index', controllers.admin.home); router.get('/general/dashboard', controllers.admin.home);
router.get('/general/languages', controllers.admin.languages.get); router.get('/general/languages', controllers.admin.languages.get);
router.get('/general/sounds', controllers.admin.sounds.get); router.get('/general/sounds', controllers.admin.sounds.get);

@ -55,7 +55,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand nodebb-logo" href="{relative_path}/admin/general/index"><img src="{relative_path}/images/logo.png" alt="NodeBB ACP" /> Admin Control Panel <span id="breadcrumbs"></span></a> <a class="navbar-brand nodebb-logo" href="{relative_path}/admin/general/dashboard"><img src="{relative_path}/images/logo.png" alt="NodeBB ACP" /> Admin Control Panel <span id="breadcrumbs"></span></a>
</div> </div>
<div class="collapse navbar-collapse"> <div class="collapse navbar-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
@ -99,7 +99,7 @@
<div class="sidebar-nav"> <div class="sidebar-nav">
<ul class="nav nav-list"> <ul class="nav nav-list">
<li class="nav-header"><i class="fa fa-fw fa-dashboard"></i> General</li> <li class="nav-header"><i class="fa fa-fw fa-dashboard"></i> General</li>
<li class="active"><a href="{relative_path}/admin/general/index">Dashboard</a></li> <li class="active"><a href="{relative_path}/admin/general/dashboard">Dashboard</a></li>
<li><a href="{relative_path}/admin/general/languages">Languages</a></li> <li><a href="{relative_path}/admin/general/languages">Languages</a></li>
<li><a href="{relative_path}/admin/general/sounds">Sounds</a></li> <li><a href="{relative_path}/admin/general/sounds">Sounds</a></li>
</ul> </ul>

@ -1,7 +1,7 @@
{ {
"custom_mapping": { "custom_mapping": {
"^\/?$": "home", "^\/?$": "home",
"^admin?$": "admin/index", "^admin?$": "admin/general/dashboard",
"^users/sort-posts": "users", "^users/sort-posts": "users",
"^users/latest": "users", "^users/latest": "users",
"^users/sort-reputation": "users", "^users/sort-reputation": "users",

Loading…
Cancel
Save