From 131afcc2afc194b954075b3b62e2c778a4f7467c Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Thu, 24 Jul 2014 15:46:17 -0700 Subject: [PATCH] Added profile side menu and submenu I'm making space in the UI to allow a user to manage their own Auth tokens, which fits more under the purview of profile and preferences. I figure it makes more sense in the sidebar under admin than in the dropdown in the header. Change-Id: I57fec47ae71b4e91acc28f279e5751fd4e164b95 --- src/app/profile/module.js | 9 +++++++- src/app/profile/template/profile_submenu.html | 23 +++++++++++++++++++ src/app/storyboard/template/header_menu.html | 7 ------ src/app/storyboard/template/side_menu.html | 13 ++++++++--- src/theme/base/icons.less | 3 +++ 5 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 src/app/profile/template/profile_submenu.html diff --git a/src/app/profile/module.js b/src/app/profile/module.js index c0c58e92..d4f74f89 100644 --- a/src/app/profile/module.js +++ b/src/app/profile/module.js @@ -35,11 +35,18 @@ angular.module('sb.profile', $stateProvider .state('profile', { abstract: true, - template: '
', url: '/profile', resolve: { isLoggedIn: SessionResolver.requireLoggedIn, currentUser: SessionResolver.requireCurrentUser + }, + views : { + 'submenu@': { + templateUrl: 'app/profile/template/profile_submenu.html' + }, + '@': { + template: '
' + } } }) .state('profile.preferences', { diff --git a/src/app/profile/template/profile_submenu.html b/src/app/profile/template/profile_submenu.html new file mode 100644 index 00000000..3729be61 --- /dev/null +++ b/src/app/profile/template/profile_submenu.html @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/src/app/storyboard/template/header_menu.html b/src/app/storyboard/template/header_menu.html index f322976a..4f8f447e 100644 --- a/src/app/storyboard/template/header_menu.html +++ b/src/app/storyboard/template/header_menu.html @@ -68,13 +68,6 @@