#72 - cleand up main menu & added ID to routes
This commit is contained in:
parent
2f870ba050
commit
9d49ba5f0a
2 changed files with 7 additions and 12 deletions
|
@ -46,7 +46,7 @@ app.config(['$routeProvider', '$locationProvider',
|
||||||
templateUrl: 'templates/views/tasks.html',
|
templateUrl: 'templates/views/tasks.html',
|
||||||
controller: 'tasksController'
|
controller: 'tasksController'
|
||||||
})
|
})
|
||||||
.when('/myClasses', {
|
.when('/myClasses/:campusId', {
|
||||||
templateUrl: 'templates/views/myClasses.html',
|
templateUrl: 'templates/views/myClasses.html',
|
||||||
controller: 'myClassesController'
|
controller: 'myClassesController'
|
||||||
})
|
})
|
||||||
|
@ -54,7 +54,7 @@ app.config(['$routeProvider', '$locationProvider',
|
||||||
templateUrl: 'templates/views/newTask.html',
|
templateUrl: 'templates/views/newTask.html',
|
||||||
controller: 'newTasksController'
|
controller: 'newTasksController'
|
||||||
})
|
})
|
||||||
.when('/projects', {
|
.when('/projects/:classId', {
|
||||||
templateUrl: 'templates/views/projects.html',
|
templateUrl: 'templates/views/projects.html',
|
||||||
controller: 'projectsController'
|
controller: 'projectsController'
|
||||||
})
|
})
|
||||||
|
|
|
@ -22,21 +22,16 @@ angular.module('SeHub')
|
||||||
"icon": "fa fa-tachometer",
|
"icon": "fa fa-tachometer",
|
||||||
"style": "selected",
|
"style": "selected",
|
||||||
"route": "/home"
|
"route": "/home"
|
||||||
}, {
|
}, {
|
||||||
"title": "My Campuses",
|
"title": "Courses",
|
||||||
"icon": "fa fa-university",
|
"icon": "fa fa-graduation-cap",
|
||||||
"style": "",
|
"style": "",
|
||||||
"route": "/campuses"
|
"route": "/campuses"
|
||||||
}, {
|
}, {
|
||||||
"title": "My Classes",
|
"title": "Projects",
|
||||||
"icon": "fa fa-graduation-cap",
|
|
||||||
"style": "",
|
|
||||||
"route": "/myClasses"
|
|
||||||
}, {
|
|
||||||
"title": "My Projects",
|
|
||||||
"icon": "fa fa-cube",
|
"icon": "fa fa-cube",
|
||||||
"style": "",
|
"style": "",
|
||||||
"route": "/projects"
|
"route": "/myClasses"
|
||||||
}, {
|
}, {
|
||||||
"title": "Tasks",
|
"title": "Tasks",
|
||||||
"icon": "fa fa-clipboard",
|
"icon": "fa fa-clipboard",
|
||||||
|
|
Loading…
Reference in a new issue