2015-04-22 13:10:38 -04:00
|
|
|
.page-with-sidebar{ class: nav_sidebar_class }
|
|
|
|
= render "layouts/broadcast"
|
|
|
|
.sidebar-wrapper
|
2015-04-30 13:06:18 -04:00
|
|
|
- if defined?(sidebar) && sidebar
|
|
|
|
= render "layouts/nav/#{sidebar}"
|
2015-04-23 04:51:17 -04:00
|
|
|
- elsif current_user
|
2015-04-22 13:10:38 -04:00
|
|
|
= render 'layouts/nav/dashboard'
|
|
|
|
.collapse-nav
|
|
|
|
= render partial: 'layouts/collapse_button'
|
2015-05-27 07:17:14 -04:00
|
|
|
- if current_user
|
2015-06-08 09:50:26 -04:00
|
|
|
= link_to current_user, class: 'sidebar-user' do
|
|
|
|
= image_tag avatar_icon(current_user.email, 60), alt: 'User activity', class: 'avatar avatar s32'
|
2015-05-27 07:17:14 -04:00
|
|
|
.username
|
|
|
|
= current_user.username
|
2015-04-22 13:10:38 -04:00
|
|
|
.content-wrapper
|
|
|
|
.container-fluid
|
|
|
|
.content
|
|
|
|
= render "layouts/flash"
|
|
|
|
.clearfix
|
|
|
|
= yield
|