switching /admin/index to /admin/dashboard

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

@ -1,7 +1,7 @@
"use strict";
/*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 updateIntervalId = 0;
Admin.init = function() {

@ -53,7 +53,7 @@ adminController.home = function(req, res, next) {
if (err) {
return next(err);
}
res.render('admin/general/index', {
res.render('admin/general/dashboard', {
version: pkg.version,
notices: results.notices,
stats: results.stats
@ -150,7 +150,7 @@ adminController.tags.get = function(req, res, next) {
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) {
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/sounds', controllers.admin.sounds.get);

@ -55,7 +55,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</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 class="collapse navbar-collapse">
<ul class="nav navbar-nav">
@ -99,7 +99,7 @@
<div class="sidebar-nav">
<ul class="nav nav-list">
<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/sounds">Sounds</a></li>
</ul>

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

Loading…
Cancel
Save