diff --git a/app/assets/javascripts/controllers/main_nav.js b/app/assets/javascripts/controllers/main_nav.js index dd6373f81..8335a3634 100644 --- a/app/assets/javascripts/controllers/main_nav.js +++ b/app/assets/javascripts/controllers/main_nav.js @@ -22,7 +22,13 @@ Application.Controllers.controller('MainNavController', ['$scope', function ($sc linkIcon: 'home', class: 'home-link' }, - + { class: 'menu-spacer' }, + { + state: 'app.public.calendar', + linkText: 'app.public.common.public_calendar', + linkIcon: 'calendar', + class: 'public-calendar-link' + }, { state: 'app.public.machines_list', linkText: 'app.public.common.reserve_a_machine', @@ -41,18 +47,14 @@ Application.Controllers.controller('MainNavController', ['$scope', function ($sc linkIcon: 'tags', class: 'reserve-event-link' }, - { - state: 'app.public.calendar', - linkText: 'app.public.common.public_calendar', - linkIcon: 'calendar', - class: 'public-calendar-link' - }, + { class: 'menu-spacer' }, { state: 'app.public.projects_list', linkText: 'app.public.common.projects_gallery', linkIcon: 'th', class: 'projects-gallery-link' - } + }, + { class: 'menu-spacer' } ]; @@ -66,7 +68,7 @@ Application.Controllers.controller('MainNavController', ['$scope', function ($sc } if (!Fablab.withoutSpaces) { - $scope.navLinks.splice(3, 0, { + $scope.navLinks.splice(4, 0, { state: 'app.public.spaces_list', linkText: 'app.public.common.reserve_a_space', linkIcon: 'rocket', @@ -76,56 +78,58 @@ Application.Controllers.controller('MainNavController', ['$scope', function ($sc Fablab.adminNavLinks = Fablab.adminNavLinks || []; const adminNavLinks = [ - { - state: 'app.admin.trainings', - linkText: 'app.public.common.trainings_monitoring', - linkIcon: 'graduation-cap' - }, { state: 'app.admin.calendar', linkText: 'app.public.common.manage_the_calendar', linkIcon: 'calendar' }, - { - state: 'app.admin.members', - linkText: 'app.public.common.manage_the_users', - linkIcon: 'users' - }, - { - state: 'app.admin.invoices', - linkText: 'app.public.common.manage_the_invoices', - linkIcon: 'file-pdf-o' - }, - { - state: 'app.admin.pricing', - linkText: 'app.public.common.subscriptions_and_prices', - linkIcon: 'money' - }, - { - state: 'app.admin.events', - linkText: 'app.public.common.manage_the_events', - linkIcon: 'tags' - }, { state: 'app.public.machines_list', linkText: 'app.public.common.manage_the_machines', linkIcon: 'cogs' }, { - state: 'app.admin.project_elements', - linkText: 'app.public.common.manage_the_projects_elements', - linkIcon: 'tasks' + state: 'app.admin.trainings', + linkText: 'app.public.common.trainings_monitoring', + linkIcon: 'graduation-cap' + }, + { + state: 'app.admin.events', + linkText: 'app.public.common.manage_the_events', + linkIcon: 'tags' + }, + { class: 'menu-spacer' }, + { + state: 'app.admin.members', + linkText: 'app.public.common.manage_the_users', + linkIcon: 'users' + }, + { + state: 'app.admin.pricing', + linkText: 'app.public.common.subscriptions_and_prices', + linkIcon: 'money' + }, + { + state: 'app.admin.invoices', + linkText: 'app.public.common.manage_the_invoices', + linkIcon: 'file-pdf-o' }, { state: 'app.admin.statistics', linkText: 'app.public.common.statistics', linkIcon: 'bar-chart-o' }, + { class: 'menu-spacer' }, { state: 'app.admin.settings', linkText: 'app.public.common.customization', linkIcon: 'gear' }, + { + state: 'app.admin.project_elements', + linkText: 'app.public.common.manage_the_projects_elements', + linkIcon: 'tasks' + }, { state: 'app.admin.open_api_clients', linkText: 'app.public.common.open_api_clients', @@ -136,7 +140,7 @@ Application.Controllers.controller('MainNavController', ['$scope', function ($sc $scope.adminNavLinks = adminNavLinks; if (!Fablab.withoutSpaces) { - return $scope.adminNavLinks.splice(7, 0, { + return $scope.adminNavLinks.splice(4, 0, { state: 'app.public.spaces_list', linkText: 'app.public.common.manage_the_spaces', linkIcon: 'rocket' diff --git a/app/assets/stylesheets/app.nav.scss b/app/assets/stylesheets/app.nav.scss index 89a505b0e..7e8c580f6 100644 --- a/app/assets/stylesheets/app.nav.scss +++ b/app/assets/stylesheets/app.nav.scss @@ -89,6 +89,10 @@ } } } + > li.menu-spacer { + margin: 6px 80% 6px 5px; + border-bottom: 1px solid white; + } ul{ display: none; } diff --git a/app/assets/templates/shared/leftnav.html.erb b/app/assets/templates/shared/leftnav.html.erb index e86c3ba6f..ecb018af6 100644 --- a/app/assets/templates/shared/leftnav.html.erb +++ b/app/assets/templates/shared/leftnav.html.erb @@ -63,7 +63,7 @@
  • - + {{navLink.linkText | translate}} @@ -74,8 +74,8 @@
    {{ 'app.public.common.admin' }}