2016-06-15 12:23:49 -04:00
|
|
|
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
|
2016-09-02 11:57:22 -04:00
|
|
|
.sidebar-wrapper.nicescroll
|
2016-07-12 11:18:44 -04:00
|
|
|
.sidebar-action-buttons
|
2016-10-03 05:38:21 -04:00
|
|
|
.nav-header-btn.toggle-nav-collapse{ title: "Open/Close" }
|
2016-07-12 11:18:44 -04:00
|
|
|
%span.sr-only Toggle navigation
|
|
|
|
= icon('bars')
|
2016-10-03 05:38:21 -04:00
|
|
|
|
|
|
|
%div{ class: "nav-header-btn 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' } }
|
2016-07-12 11:18:44 -04:00
|
|
|
%span.sr-only Toggle navigation pinning
|
2016-07-14 07:58:25 -04:00
|
|
|
= icon('fw thumb-tack')
|
2016-07-12 11:18:44 -04:00
|
|
|
|
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
|
|
|
|
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-09-29 11:54:45 -04:00
|
|
|
= yield :sub_nav
|
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-07-22 05:59:26 -04:00
|
|
|
%div{ class: "#{(container_class unless @no_container)} #{@content_class}" }
|
2016-11-17 09:12:20 -05:00
|
|
|
.content{ id: "content-body" }
|
2016-07-22 05:59:26 -04:00
|
|
|
= yield
|