diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-12-07 16:03:00 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-12-10 00:57:23 -0600 |
commit | b65d3e1132762b9e1a39ce908b3b481f92d9a10c (patch) | |
tree | 5f3f31610fb07ee3b5a692a0afae167a0803c8c3 /app/views/dashboard/_snippets_head.html.haml | |
parent | 6b20ad3646694ae90e8375f92cb5df13e2fd9fad (diff) | |
download | gitlab-ce-b65d3e1132762b9e1a39ce908b3b481f92d9a10c.tar.gz |
move new snippet button to main snippet navigation block
Diffstat (limited to 'app/views/dashboard/_snippets_head.html.haml')
-rw-r--r-- | app/views/dashboard/_snippets_head.html.haml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/app/views/dashboard/_snippets_head.html.haml b/app/views/dashboard/_snippets_head.html.haml index b25e8ea1f0c..02e90bbfa55 100644 --- a/app/views/dashboard/_snippets_head.html.haml +++ b/app/views/dashboard/_snippets_head.html.haml @@ -1,7 +1,13 @@ -%ul.nav-links - = nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do - = link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do - Your Snippets - = nav_link(page: explore_snippets_path) do - = link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do - Explore Snippets +.top-area + %ul.nav-links + = nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do + = link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do + Your Snippets + = nav_link(page: explore_snippets_path) do + = link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do + Explore Snippets + + - if current_user + .nav-controls.hidden-xs + = link_to new_snippet_path, class: "btn btn-new", title: "New snippet" do + New snippet |