Moneyvate/invoices-site

View on GitHub
app/views/layouts/devise.html.haml

Summary

Maintainability
Test Coverage
!!!
/ paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
/[if lt IE 7 ] <html class="ie6" lang="en">
/[if IE 7 ] <html class="ie7" lang="en">
/[if IE 8 ] <html class="ie8" lang="en">
/ [if (gte IE 9)|!(IE)]><!
%html{:lang => "en"}
  / <![endif]
  %head
    %meta{:charset => "utf-8"}/
    / Uncomment to make IE8 render like IE7
    / <meta http-equiv="X-UA-Compatible" content="IE=7" />
    / Set the viewport width to device width for mobile
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
    %title= content_for?(:title) ? yield(:title) : "Untitled"
    = stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true
    = javascript_include_tag "application", "data-turbolinks-track" => true, "vendor/custom.modernizr" => true
    = csrf_meta_tags
  %body
    %header
      = render 'common/navigation'
    %div#content
      %div.row
        %p.notice.small-12.columns #{notice}
        %p.alert.small-12.columns #{alert}
      %div.row
        %div.small-12.columns
          %h2 #{content_for?(:title) ? yield(:title) : "Untitled"}
        %div.small-12.columns
          = yield
          = render "devise/shared/links" unless user_signed_in?
    %footer
      = render 'common/footer'