diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-06-14 23:37:02 +0300 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-06-15 17:10:16 +0300 |
commit | 922a164d60725246ee038d2603d2beed0a82277a (patch) | |
tree | 6f2c37639e19b9dd6f860bd44cbe5b0e0b7a4ccc /app/views/layouts | |
parent | 736ba42b249d8ccd22b455f6cd09ae946bd2d855 (diff) |
Add sub links to overview
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/nav/_admin.html.haml | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/app/views/layouts/nav/_admin.html.haml b/app/views/layouts/nav/_admin.html.haml index 1d53f715e86..9d85ec1d6d1 100644 --- a/app/views/layouts/nav/_admin.html.haml +++ b/app/views/layouts/nav/_admin.html.haml @@ -1,21 +1,9 @@ %ul.nav-links.scrolling-tabs .fade-left - = nav_link(controller: :dashboard, html_options: {class: 'home'}) do - = link_to admin_root_path, title: 'Overview' do + = nav_link(controller: %w(dashboard admin projects users groups), html_options: {class: 'home'}) do + = link_to admin_root_path, title: 'Overview', class: 'shortcuts-tree' do %span Overview - = nav_link(controller: [:admin, :projects]) do - = link_to admin_namespaces_projects_path, title: 'Projects' do - %span - Projects - = nav_link(controller: :users) do - = link_to admin_users_path, title: 'Users' do - %span - Users - = nav_link(controller: :groups) do - = link_to admin_groups_path, title: 'Groups' do - %span - Groups = nav_link(controller: :deploy_keys) do = link_to admin_deploy_keys_path, title: 'Deploy Keys' do %span |