Dont render dashbaord nav if user is not signed in

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-04-23 11:51:17 +03:00
parent 5f3b2be8a0
commit 63c5911961
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
.sidebar-wrapper
- if defined?(sidebar)
= render(sidebar)
- else
- elsif current_user
= render 'layouts/nav/dashboard'
.collapse-nav
= render partial: 'layouts/collapse_button'