rubycentral/cfp-app

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

Summary

Maintainability
Test Coverage
!!!5
%html(lang="en")
  %head
    %title= title
    %meta(name="viewport" content="width=device-width, initial-scale=1.0")

    = stylesheet_link_tag 'application', media: 'all'
    = stylesheet_link_tag '//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css', media: 'all'
    = stylesheet_link_tag "//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600"

    = stylesheet_pack_tag "application", media: 'all'
    = javascript_pack_tag "application"

    = javascript_include_tag 'https://www.gstatic.com/charts/loader.js'
    = javascript_include_tag 'application'
    = javascript_tag { yield :custom_js }

    = csrf_meta_tags

    // html5 shim and respond.js ie8 support of html5 elements and media queries
    /[if lt ie 9]
      = javascript_include_tag "/js/html5shiv.js"
      = javascript_include_tag "/js/respond.min.js"

  %body{id: body_id}
    = render partial: "layouts/navbar"

  #flash= show_flash

  .main
    .main-inner
      .container-fluid
        =yield

  = render partial: "layouts/event_footer"