2016-06-22 15:30:34 +05:30
|
|
|
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
|
2016-09-29 09:46:39 +05:30
|
|
|
.sidebar-wrapper.nicescroll
|
2016-08-24 12:49:21 +05:30
|
|
|
.sidebar-action-buttons
|
2016-11-03 12:29:30 +05:30
|
|
|
.nav-header-btn.toggle-nav-collapse{ title: "Open/Close" }
|
2016-08-24 12:49:21 +05:30
|
|
|
%span.sr-only Toggle navigation
|
|
|
|
= icon('bars')
|
2016-11-03 12:29:30 +05:30
|
|
|
|
|
|
|
%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-08-24 12:49:21 +05:30
|
|
|
%span.sr-only Toggle navigation pinning
|
|
|
|
= icon('fw thumb-tack')
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if defined?(sidebar) && sidebar
|
|
|
|
= render "layouts/nav/#{sidebar}"
|
|
|
|
- elsif current_user
|
|
|
|
= render 'layouts/nav/dashboard'
|
2015-09-25 12:07:36 +05:30
|
|
|
- else
|
|
|
|
= render 'layouts/nav/explore'
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
- if defined?(nav) && nav
|
|
|
|
.layout-nav
|
|
|
|
.container-fluid
|
|
|
|
= render "layouts/nav/#{nav}"
|
2016-06-16 23:09:34 +05:30
|
|
|
.content-wrapper{ class: "#{layout_nav_class}" }
|
2016-11-03 12:29:30 +05:30
|
|
|
= yield :sub_nav
|
2016-06-02 11:05:42 +05:30
|
|
|
= render "layouts/broadcast"
|
2015-09-25 12:07:36 +05:30
|
|
|
= render "layouts/flash"
|
2015-10-24 18:46:33 +05:30
|
|
|
= yield :flash_message
|
2016-09-13 17:45:13 +05:30
|
|
|
%div{ class: "#{(container_class unless @no_container)} #{@content_class}" }
|
2015-09-11 14:41:01 +05:30
|
|
|
.content
|
2016-09-13 17:45:13 +05:30
|
|
|
= yield
|