Commit 63c59119 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Dont render dashbaord nav if user is not signed in

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 5f3b2be8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.sidebar-wrapper .sidebar-wrapper
- if defined?(sidebar) - if defined?(sidebar)
= render(sidebar) = render(sidebar)
- else - elsif current_user
= render 'layouts/nav/dashboard' = render 'layouts/nav/dashboard'
.collapse-nav .collapse-nav
= render partial: 'layouts/collapse_button' = render partial: 'layouts/collapse_button'
......
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