summaryrefslogtreecommitdiff
path: root/app/views/layouts/_page.html.haml
blob: c4f8cd71395312c102d1ce1c712fc4201df73e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.page-with-sidebar{ class: page_with_sidebar_class }
  - if show_new_nav?
    - if defined?(nav) && nav
      = render "layouts/nav/#{nav}"
  - else
    - if defined?(nav) && nav
      .layout-nav
        .container-fluid
          = render "layouts/nav/#{nav}"
    - if content_for?(:sub_nav)
      = yield :sub_nav
  .content-wrapper{ class: layout_nav_class }
    - if show_new_nav?
      .mobile-overlay
    .alert-wrapper
      = render "layouts/broadcast"
      - if show_new_nav?
        - if content_for?(:new_global_flash)
          = yield :new_global_flash
        - unless @hide_breadcrumbs
          = render "layouts/nav/breadcrumbs"
      = render "layouts/flash"
      = yield :flash_message
    %div{ class: "#{(container_class unless @no_container)} #{@content_class}" }
      .content{ id: "content-body" }
        = yield