summaryrefslogtreecommitdiff
path: root/app/views/layouts/_content.html.haml
blob: 21d2e120e04d754f381ce5345d44a2e5ff449949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-#
-# Partial for displaying the page content. This is the only place that content should be displayed (except for home layout)
-#

- if content_for?(:content)
  - content = yield(:content)
- else
  - content = yield

- if @show_navigation
  .col-md-2
    = render 'layouts/navigation'
  .col-md-10
    = render 'layouts/messages'
    = content
- else
  .col-md-12
    = render 'layouts/messages'
    = content