summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.haml
blob: 33a730faf0e9398c4f96bdb891d46ea621ffbf3e (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
!!!
%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
    .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