mirror of
https://github.com/Foltik/Shimapan
synced 2025-01-07 08:42:49 -05:00
Change href to ui-sref and make title a link
This commit is contained in:
parent
c8cbd030c7
commit
ce95188285
@ -50,12 +50,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-title {
|
.sidebar-title {
|
||||||
|
color: #2a9fd6;
|
||||||
|
cursor: pointer;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 7px;
|
letter-spacing: 7px;
|
||||||
color: #eee;
|
|
||||||
border-bottom: 1px solid #222;
|
border-bottom: 1px solid #222;
|
||||||
background: #2a2a2a;
|
background: #2a2a2a;
|
||||||
}
|
}
|
||||||
|
@ -4,11 +4,27 @@ angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRout
|
|||||||
$urlRouterProvider.otherwise('/panel');
|
$urlRouterProvider.otherwise('/panel');
|
||||||
|
|
||||||
$stateProvider
|
$stateProvider
|
||||||
.state('/panel', {
|
.state('dashboard', {
|
||||||
url: '/panel',
|
url: '/panel',
|
||||||
templateUrl: '/views/shimapan-panel/panel-home.html'
|
templateUrl: '/views/shimapan-panel/panel-home.html'
|
||||||
}).state('/panel/api', {
|
}).state('search', {
|
||||||
url: '/panel/api',
|
url: '/panel/search',
|
||||||
|
templateUrl: '/views/shimapan-panel/panel-search.html'
|
||||||
|
}).state('api', {
|
||||||
|
url: '/panel/api',
|
||||||
templateUrl: '/views/shimapan-panel/panel-api.html'
|
templateUrl: '/views/shimapan-panel/panel-api.html'
|
||||||
|
}).state('invites', {
|
||||||
|
url: '/panel/invites',
|
||||||
|
templateUrl: '/views/shimapan-panel/panel-invites.html'
|
||||||
|
}).state('stats', {
|
||||||
|
url: '/panel/stats',
|
||||||
|
templateUrl: '/views/shimapan-panel/panel-stats.html'
|
||||||
|
}).state('users', {
|
||||||
|
url: '/panel/users',
|
||||||
|
templateUrl: '/views/shimapan-panel/panel-users.html'
|
||||||
|
}).state('home', {
|
||||||
|
onEnter: ['$window', function($window) {
|
||||||
|
$window.location.href = '/home';
|
||||||
|
}]
|
||||||
});
|
});
|
||||||
}]);
|
}]);
|
@ -19,15 +19,15 @@
|
|||||||
<body ng-app="shimapan-panel">
|
<body ng-app="shimapan-panel">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="sidebar" ng-controller="NavController">
|
<div class="sidebar" ng-controller="NavController">
|
||||||
<div class="sidebar-title">Shimapan</div>
|
<div class="sidebar-title"><a ui-sref="home">Shimapan</a></div>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li><a href="/panel" ng-class="{active: $state.$current.name=='/panel'}">Dashboard</a></li>
|
<li><a ui-sref="dashboard" ng-class="{active: $state.$current.name=='dashboard'}">Dashboard</a></li>
|
||||||
<li><a href="/panel/search" ng-class="{active: $state.$current.name=='/panel/search'}">Search</a></li>
|
<li><a ui-sref="search" ng-class="{active: $state.$current.name=='search'}">Search</a></li>
|
||||||
<li><a href="/panel/api" ng-class="{active: $state.$current.name=='/panel/api'}">API</a></li>
|
<li><a ui-sref="api" ng-class="{active: $state.$current.name=='api'}">API</a></li>
|
||||||
<li><a href="/panel/invites" ng-class="{active: $state.$current.name=='/panel/invites'}">Invites</a></li>
|
<li><a ui-sref="invites" ng-class="{active: $state.$current.name=='invites'}">Invites</a></li>
|
||||||
<li ng-hide="!hasPermission('users.view')"><a href="/panel/users" ng-class="{active: $state.$current.name=='/panel/users'}">Users</a></li>
|
<li ng-hide="!hasPermission('users.view')"><a ui-sref="users" ng-class="{active: $state.$current.name=='users'}">Users</a></li>
|
||||||
<li><a href="/panel/stats" ng-class="{active: $state.$current.name=='/panel/stats'}">Statistics</a></li>
|
<li><a ui-sref="stats" ng-class="{active: $state.$current.name=='stats'}">Statistics</a></li>
|
||||||
<li><a href="" ng-click="logout()">Logout</a></li>
|
<li><a ui-sref="" ng-click="logout()">Logout</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="content isOpen" ng-class="{isOpen: open}">
|
<div class="content isOpen" ng-class="{isOpen: open}">
|
||||||
|
Loading…
Reference in New Issue
Block a user