Commit 635c8611 authored by Douwe Maan's avatar Douwe Maan

Fix snippest sidebar when signed out.

parent 280a2124
%ul.nav.nav-sidebar %ul.nav.nav-sidebar
= nav_link(path: user_snippets_path(current_user), html_options: {class: 'home'}) do - if current_user
= link_to user_snippets_path(current_user), title: 'Your snippets', data: {placement: 'right'} do = nav_link(path: user_snippets_path(current_user), html_options: {class: 'home'}) do
= icon('dashboard fw') = link_to user_snippets_path(current_user), title: 'Your snippets', data: {placement: 'right'} do
%span = icon('dashboard fw')
Your Snippets %span
Your Snippets
= nav_link(path: snippets_path) do = nav_link(path: snippets_path) do
= link_to snippets_path, title: 'Discover snippets', data: {placement: 'right'} do = link_to snippets_path, title: 'Discover snippets', data: {placement: 'right'} do
= icon('globe fw') = icon('globe fw')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment