summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.haml
blob: 8caee14dbd059cfcd05543ed4f1b6b219629bedc (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
27
28
29
30
31
32
33
34
35
36
37
!!!
%html
  %head
    %meta{:charset => "utf-8"}/
    %title 
      = content_for?(:title) ? yield(:title) : "Gemeinschaft 5"
    %meta{:name => 'viewport', :content => "width=device-width, initial-scale=1.0"}
    - if content_for?(:meta_description)
      %meta{:description => yield(:meta_description)}/
    %meta{:author => "AMOOMA GmbH"}/
    = stylesheet_link_tag    "application", :media => "all"
    = javascript_include_tag "application"
    = csrf_meta_tags
    / HTML5 shim, for IE6-8 support of HTML5 elements
    /[if lt IE 9]
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  %body
    = render 'layouts/navbar'

    = render_breadcrumbs :builder => ::BootstrapBreadcrumbsBuilder, :separator => "/"

    .container
      .row
        .span12
          - unless response.cache_control[:public]
            - flash.each do |name, msg|
              %div{:class => "alert alert-#{name == :notice ? "success" : "error"} fade in"}
                %a.close{"data-dismiss" => "alert"} ×
                = msg

          = yield

      .row
        .span12
          %hr/
          = render 'layouts/footer'
    / /container