2016-06-22 15:30:34 +05:30
|
|
|
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
|
2015-12-23 02:04:40 +05:30
|
|
|
.sidebar-wrapper.nicescroll{ class: nav_sidebar_class }
|
2016-08-24 12:49:21 +05:30
|
|
|
.sidebar-action-buttons
|
|
|
|
= link_to '#', class: 'nav-header-btn toggle-nav-collapse', title: "Open/Close" do
|
|
|
|
%span.sr-only Toggle navigation
|
|
|
|
= icon('bars')
|
|
|
|
= link_to '#', 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'} do
|
|
|
|
%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-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
|