From 47130f9389e39531abfcc037c524df6e85327425 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 12 Jan 2016 19:45:49 +0300 Subject: [PATCH] refactor(authPages): move auth pages to submenu --- gulp/styles.js | 6 +++--- src/app/theme/components/sidebar/SidebarCtrl.js | 13 +++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/gulp/styles.js b/gulp/styles.js index 93ab27d..a744fab 100644 --- a/gulp/styles.js +++ b/gulp/styles.js @@ -21,10 +21,10 @@ gulp.task('styles', function () { }); gulp.task('stylesAuth', function () { - return buildAloneStyles(path.join(conf.paths.src, '/sass/auth.scss')); + return buildSingleScss(path.join(conf.paths.src, '/sass/auth.scss')); }); gulp.task('styles404', function () { - return buildAloneStyles(path.join(conf.paths.src, '/sass/404.scss')); + return buildSingleScss(path.join(conf.paths.src, '/sass/404.scss')); }); var buildStyles = function () { @@ -61,7 +61,7 @@ var buildStyles = function () { .pipe(gulp.dest(path.join(conf.paths.tmp, '/serve/app/'))); }; -var buildAloneStyles = function (paths) { +var buildSingleScss = function (paths) { var sassOptions = { style: 'expanded' }; diff --git a/src/app/theme/components/sidebar/SidebarCtrl.js b/src/app/theme/components/sidebar/SidebarCtrl.js index 2497749..c57bbc0 100644 --- a/src/app/theme/components/sidebar/SidebarCtrl.js +++ b/src/app/theme/components/sidebar/SidebarCtrl.js @@ -41,9 +41,18 @@ var staticMenuItems = [ { - title: 'Login Page', + title: 'Auth Pages', icon: 'ion-log-out', - root: 'auth.html' + subMenu: [ + { + title: 'Sign In', + root: 'auth.html' + }, + { + title: 'Sign Up', + root: 'reg.html' + } + ] }, { title: '404 Page',