!!! %html %head %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} %title= content_for?(:title) ? yield(:title) : Settings.site_name %meta{:content => content_for?(:description) ? yield(:description) : Settings.site_name , :name => "description"} = stylesheet_link_tag "application", :media => "all" = javascript_include_tag "application" = csrf_meta_tags = yield(:head) %body{:class => "#{controller_name} #{action_name}"} %header.navbar.navbar-fixed-top %nav.navbar-inner .container %a.btn.btn-navbar(data-toggle="collapse" data-target=".nav-collapse") %span.icon-bar %span.icon-bar %span.icon-bar = link_to Settings.site_name, root_path, class: 'brand' .nav-collapse.collapse = render 'layouts/navigation' #main{:role => "main"} .container - flash.each do |name, msg| - if msg.is_a?(String) %div{:class => "alert alert-#{name == :alert ? "error" : "success"}"} %a.close{"data-dismiss" => "alert"} × = content_tag :div, msg, :id => "flash_#{name}" = yield %footer.footer .container = link_to('Terms of Service', terms_of_service_path) = link_to('Privacy Policy', privacy_policy_path) .pull-right © #{Settings.site_name}