#72 - cleand up main menu & added ID to routes

This commit is contained in:
Sagi Dayan 2015-06-26 14:08:23 +03:00
parent 2f870ba050
commit 9d49ba5f0a
2 changed files with 7 additions and 12 deletions

View file

@ -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'
}) })

View file

@ -23,20 +23,15 @@ angular.module('SeHub')
"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",