From ce951882856d6e950a55fc62bd20fa478671776d Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 14 Oct 2017 17:06:43 -0400 Subject: [PATCH] Change href to ui-sref and make title a link --- public/css/panel.css | 3 ++- public/js/shimapan-panel/routes.js | 22 +++++++++++++++++++--- public/views/panel.html | 16 ++++++++-------- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/public/css/panel.css b/public/css/panel.css index e93549f..5f30640 100644 --- a/public/css/panel.css +++ b/public/css/panel.css @@ -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; } diff --git a/public/js/shimapan-panel/routes.js b/public/js/shimapan-panel/routes.js index ca61bdc..3ae8dc4 100644 --- a/public/js/shimapan-panel/routes.js +++ b/public/js/shimapan-panel/routes.js @@ -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'; + }] }); }]); \ No newline at end of file diff --git a/public/views/panel.html b/public/views/panel.html index 46c1d0c..78b5d0e 100644 --- a/public/views/panel.html +++ b/public/views/panel.html @@ -19,15 +19,15 @@