diowa/ruby2-rails4-bootstrap-heroku

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

Summary

Maintainability
Test Coverage
doctype html
html lang=I18n.locale data-default-lang=I18n.default_locale
  head
    meta charset='utf-8'
    meta content='IE=edge' http-equiv='X-UA-Compatible'
    meta name='viewport' content='width=device-width, initial-scale=1'
    / The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags

    title = yield_or_default :title, action_name.titlecase
    = csrf_meta_tags
    = yield :head

    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'

    / Web App manifest
    link href='/manifest.json' rel='manifest'
    meta content=t('app_name') name='application-name'
    meta content='#e00000' name='theme-color'

    link href=asset_path('apple-touch-icon.png') rel='apple-touch-icon' sizes='180x180'

    / Turbolinks require javascript tags inside the head
    = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'

    / HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
    /[if lt IE 9]
      = javascript_include_tag 'https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js', 'respond.js'

  body
    == render 'shared/navbar'

    .main-container.container = yield

    == render 'shared/footer'