mirror of
https://github.com/Foltik/Shimapan
synced 2025-01-05 15:58:03 -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 {
|
||||
color: #2a9fd6;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
line-height: 50px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 7px;
|
||||
color: #eee;
|
||||
border-bottom: 1px solid #222;
|
||||
background: #2a2a2a;
|
||||
}
|
||||
|
@ -4,11 +4,27 @@ angular.module('PanelRoutes', ['ui.router']).config(['$stateProvider', '$urlRout
|
||||
$urlRouterProvider.otherwise('/panel');
|
||||
|
||||
$stateProvider
|
||||
.state('/panel', {
|
||||
.state('dashboard', {
|
||||
url: '/panel',
|
||||
templateUrl: '/views/shimapan-panel/panel-home.html'
|
||||
}).state('/panel/api', {
|
||||
url: '/panel/api',
|
||||
}).state('search', {
|
||||
url: '/panel/search',
|
||||
templateUrl: '/views/shimapan-panel/panel-search.html'
|
||||
}).state('api', {
|
||||
url: '/panel/api',
|
||||
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">
|
||||
<div class="container">
|
||||
<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">
|
||||
<li><a href="/panel" ng-class="{active: $state.$current.name=='/panel'}">Dashboard</a></li>
|
||||
<li><a href="/panel/search" ng-class="{active: $state.$current.name=='/panel/search'}">Search</a></li>
|
||||
<li><a href="/panel/api" ng-class="{active: $state.$current.name=='/panel/api'}">API</a></li>
|
||||
<li><a href="/panel/invites" ng-class="{active: $state.$current.name=='/panel/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><a href="/panel/stats" ng-class="{active: $state.$current.name=='/panel/stats'}">Statistics</a></li>
|
||||
<li><a href="" ng-click="logout()">Logout</a></li>
|
||||
<li><a ui-sref="dashboard" ng-class="{active: $state.$current.name=='dashboard'}">Dashboard</a></li>
|
||||
<li><a ui-sref="search" ng-class="{active: $state.$current.name=='search'}">Search</a></li>
|
||||
<li><a ui-sref="api" ng-class="{active: $state.$current.name=='api'}">API</a></li>
|
||||
<li><a ui-sref="invites" ng-class="{active: $state.$current.name=='invites'}">Invites</a></li>
|
||||
<li ng-hide="!hasPermission('users.view')"><a ui-sref="users" ng-class="{active: $state.$current.name=='users'}">Users</a></li>
|
||||
<li><a ui-sref="stats" ng-class="{active: $state.$current.name=='stats'}">Statistics</a></li>
|
||||
<li><a ui-sref="" ng-click="logout()">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content isOpen" ng-class="{isOpen: open}">
|
||||
|
Loading…
Reference in New Issue
Block a user