summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.haml
blob: 027f837c4c7a3625c5dc040302b66c4f11b68c7f (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
38
39
40
!!!
%html
  %head
    %meta{:charset => "utf-8"}/
    %title 
      = content_for?(:title) ? yield(:title) : "Gemeinschaft 5.1"
    %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
    .container
      .row
        .span12
          = render 'layouts/navbar'

          - 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

          - if current_user
            = render_breadcrumbs :builder => ::BootstrapBreadcrumbsBuilder, :separator => "/"

          = yield

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

    / /container