diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-30 21:10:34 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-30 21:10:34 +0200 |
commit | 635c86114fdc2843b14ab5c38fdc8e92abfbed13 (patch) | |
tree | 7c07eac766441ff8141802c05a8bb59a61b4c926 /app | |
parent | 280a212443481dd4a5b470611c87a57f9ab129a6 (diff) | |
download | gitlab-ce-635c86114fdc2843b14ab5c38fdc8e92abfbed13.tar.gz |
Fix snippest sidebar when signed out.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/nav/_snippets.html.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/layouts/nav/_snippets.html.haml b/app/views/layouts/nav/_snippets.html.haml index 0de3a9e5bb7..458b76a2c99 100644 --- a/app/views/layouts/nav/_snippets.html.haml +++ b/app/views/layouts/nav/_snippets.html.haml @@ -1,9 +1,10 @@ %ul.nav.nav-sidebar - = nav_link(path: user_snippets_path(current_user), html_options: {class: 'home'}) do - = link_to user_snippets_path(current_user), title: 'Your snippets', data: {placement: 'right'} do - = icon('dashboard fw') - %span - Your Snippets + - if current_user + = nav_link(path: user_snippets_path(current_user), html_options: {class: 'home'}) do + = link_to user_snippets_path(current_user), title: 'Your snippets', data: {placement: 'right'} do + = icon('dashboard fw') + %span + Your Snippets = nav_link(path: snippets_path) do = link_to snippets_path, title: 'Discover snippets', data: {placement: 'right'} do = icon('globe fw') |