From 9d49ba5f0aee5adebaafaee917039215016dfb54 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Fri, 26 Jun 2015 14:08:23 +0300 Subject: [PATCH 1/9] #72 - cleand up main menu & added ID to routes --- templates/js/app.js | 4 ++-- templates/js/controllers/mainController.js | 15 +++++---------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/templates/js/app.js b/templates/js/app.js index 99a5e63..bb9af14 100644 --- a/templates/js/app.js +++ b/templates/js/app.js @@ -46,7 +46,7 @@ app.config(['$routeProvider', '$locationProvider', templateUrl: 'templates/views/tasks.html', controller: 'tasksController' }) - .when('/myClasses', { + .when('/myClasses/:campusId', { templateUrl: 'templates/views/myClasses.html', controller: 'myClassesController' }) @@ -54,7 +54,7 @@ app.config(['$routeProvider', '$locationProvider', templateUrl: 'templates/views/newTask.html', controller: 'newTasksController' }) - .when('/projects', { + .when('/projects/:classId', { templateUrl: 'templates/views/projects.html', controller: 'projectsController' }) diff --git a/templates/js/controllers/mainController.js b/templates/js/controllers/mainController.js index 5cfa78f..b9ac448 100644 --- a/templates/js/controllers/mainController.js +++ b/templates/js/controllers/mainController.js @@ -22,21 +22,16 @@ angular.module('SeHub') "icon": "fa fa-tachometer", "style": "selected", "route": "/home" - }, { - "title": "My Campuses", - "icon": "fa fa-university", + }, { + "title": "Courses", + "icon": "fa fa-graduation-cap", "style": "", "route": "/campuses" }, { - "title": "My Classes", - "icon": "fa fa-graduation-cap", - "style": "", - "route": "/myClasses" - }, { - "title": "My Projects", + "title": "Projects", "icon": "fa fa-cube", "style": "", - "route": "/projects" + "route": "/myClasses" }, { "title": "Tasks", "icon": "fa fa-clipboard", From 42210f73d577d9c443e3c72bb4b51e118b5c8016 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Fri, 26 Jun 2015 14:52:33 +0300 Subject: [PATCH 2/9] API Docs - index UI --- templates/API_Doc/api_doc_index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/API_Doc/api_doc_index.html b/templates/API_Doc/api_doc_index.html index a1077de..e1b4ae1 100644 --- a/templates/API_Doc/api_doc_index.html +++ b/templates/API_Doc/api_doc_index.html @@ -54,8 +54,8 @@ SE-Hub Docs Index - -
+
+
  • Users Related API
  • Campuses Related API
  • @@ -66,7 +66,7 @@
  • Miscellaneous Methods
- +