Created
January 23, 2015 01:04
-
-
Save feifanzhou/8264978700a17f328980 to your computer and use it in GitHub Desktop.
layout file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<% if Rails.env.production? %> | |
<script> | |
//Hotjar tracking | |
</script> | |
<script> | |
//Google Analytics | |
</script> | |
<% end %> | |
<meta charset="utf-8"> | |
<!-- Use the .htaccess and remove these lines to avoid edge case issues. | |
More info: h5bp.com/i/378 --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<link rel="apple-touch-icon" sizes="57x57" href="/icons/apple-touch-icon-57x57.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="/icons/apple-touch-icon-114x114.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="/icons/apple-touch-icon-72x72.png"> | |
<link rel="apple-touch-icon" sizes="144x144" href="/icons/apple-touch-icon-144x144.png"> | |
<link rel="apple-touch-icon" sizes="60x60" href="/icons/apple-touch-icon-60x60.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="/icons/apple-touch-icon-120x120.png"> | |
<link rel="apple-touch-icon" sizes="76x76" href="/icons/apple-touch-icon-76x76.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="/icons/apple-touch-icon-152x152.png"> | |
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon-180x180.png"> | |
<link rel="icon" type="image/png" href="/icons/favicon-192x192.png" sizes="192x192"> | |
<link rel="icon" type="image/png" href="/icons/favicon-160x160.png" sizes="160x160"> | |
<link rel="icon" type="image/png" href="/icons/favicon-96x96.png" sizes="96x96"> | |
<link rel="icon" type="image/png" href="/icons/favicon-16x16.png" sizes="16x16"> | |
<link rel="icon" type="image/png" href="/icons/favicon-32x32.png" sizes="32x32"> | |
<meta name="msapplication-TileColor" content="#da532c"> | |
<meta name="msapplication-TileImage" content="/icons/mstile-144x144.png"> | |
<title><%= yield(:title) %><%= ' | ' if content_for? :title %>Tunetap</title> | |
<meta name="description" content="<%= yield(:title) %><%= ' | ' if content_for? :title %>Tunetap helps musicians and venues play more concerts by saving time and reduce the risk of losing money by crowdfunding the show."> | |
<!-- Mobile viewport optimized: h5bp.com/viewport --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons --> | |
<!-- Load Fontawesome before our CSS so that our display styles take effect --> | |
<% unless Rails.env.test? %> | |
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> | |
<% end %> | |
<%= stylesheet_link_tag "application" %> | |
<%= stylesheet_link_tag controller.controller_name %> | |
<%= csrf_meta_tags %> | |
<!-- More ideas for your <head> here: h5bp.com/d/head-Tips --> | |
</head> | |
<body class='<%= controller.controller_name %>' id='body'> | |
<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you support IE 6. | |
chromium.org/developers/how-tos/chrome-frame-getting-started --> | |
<!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]--> | |
<!-- Add your site or application content here --> | |
<%= yield %> | |
<!-- JavaScript at the bottom for fast page loading: http://developer.yahoo.com/performance/rules.html#js_bottom --> | |
<% if Rails.env.production? %> | |
<%= javascript_include_tag 'production' %> <!-- Includes minified vendor files JS --> | |
<% else %> | |
<%= javascript_include_tag 'development' %> | |
<% end %> | |
<%= javascript_include_tag '_shared' %> | |
<%= javascript_include_tag controller.controller_name %> | |
<% if Rails.env.test? %> | |
<style type="text/css"> | |
div, a, span, footer, header { | |
-webkit-transition: none !important; | |
-moz-transition: none !important; | |
-ms-transition: none !important; | |
-o-transition: none !important; | |
transition: none !important; | |
} | |
.modal { | |
display: none !important; | |
} | |
.modal.in { | |
display: block !important; | |
} | |
.modal-backdrop { | |
display: none !important; | |
} | |
</style> | |
<% end %> | |
<% if Rails.env.production? %> | |
<script type="text/javascript"> | |
// Firehose chat | |
</script> | |
<% end %> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment