2016-06-15 12:23:49 -04:00
|
|
|
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
|
2015-12-02 08:05:10 -05:00
|
|
|
.sidebar-wrapper.nicescroll{ class: nav_sidebar_class }
|
2016-06-15 14:35:37 -04:00
|
|
|
= render partial: 'layouts/collapse_button'
|
2016-04-07 17:20:16 -04:00
|
|
|
- if defined?(sidebar) && sidebar
|
|
|
|
= render "layouts/nav/#{sidebar}"
|
|
|
|
- elsif current_user
|
|
|
|
= render 'layouts/nav/dashboard'
|
2015-09-08 09:49:20 -04:00
|
|
|
- else
|
2016-04-07 17:20:16 -04:00
|
|
|
= render 'layouts/nav/explore'
|
2015-09-08 09:49:20 -04:00
|
|
|
|
2015-05-27 07:17:14 -04:00
|
|
|
- if current_user
|
2016-06-10 16:08:13 -04:00
|
|
|
= link_to current_user, class: 'sidebar-user', title: "Profile", data: {user: current_user.username} do
|
2016-06-10 13:27:05 -04:00
|
|
|
= image_tag avatar_icon(current_user, 60), alt: 'Profile', class: 'avatar avatar s36'
|
|
|
|
.username
|
|
|
|
= current_user.username
|
2016-06-17 13:15:08 -04:00
|
|
|
= link_to '#', class: "nav-header-btn text-center pin-nav-btn has-tooltip #{'is-active' if pinned_nav?} js-nav-pin", title: pinned_nav? ? "Unpin navigation" : "Pin Navigation", data: {placement: 'right', container: 'body'} do
|
2016-06-15 14:35:37 -04:00
|
|
|
%span.sr-only Toggle navigation pinning
|
|
|
|
= icon('thumb-tack')
|
2016-04-28 08:23:25 -04:00
|
|
|
- if defined?(nav) && nav
|
|
|
|
.layout-nav
|
2016-06-11 04:30:53 -04:00
|
|
|
.container-fluid
|
2016-04-28 08:23:25 -04:00
|
|
|
= render "layouts/nav/#{nav}"
|
2016-05-24 12:30:53 -04:00
|
|
|
.content-wrapper{ class: "#{layout_nav_class}" }
|
2016-05-12 17:22:21 -04:00
|
|
|
= render "layouts/broadcast"
|
2015-09-07 05:58:19 -04:00
|
|
|
= render "layouts/flash"
|
2015-10-13 07:03:27 -04:00
|
|
|
= yield :flash_message
|
2016-01-13 08:27:36 -05:00
|
|
|
%div{ class: (container_class unless @no_container) }
|
2015-04-22 13:10:38 -04:00
|
|
|
.content
|
2015-10-05 07:59:01 -04:00
|
|
|
.clearfix
|
2015-04-22 13:10:38 -04:00
|
|
|
= yield
|