test/dummy/app/views/layouts/application.html.erb in twitter_ratchet_rails-0.0.1 vs test/dummy/app/views/layouts/application.html.erb in twitter_ratchet_rails-0.0.2
- old
+ new
@@ -1,14 +1,31 @@
<!DOCTYPE html>
<html>
-<head>
- <title>Dummy</title>
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
- <%= csrf_meta_tags %>
-</head>
-<body>
+ <head>
+ <meta charset="utf-8">
+ <title>Ratchet template page</title>
-<%= yield %>
+ <!-- Sets initial viewport load and disables zooming -->
+ <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
-</body>
+ <!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+
+ <%= csrf_meta_tags %>
+ <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
+ <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
+ </head>
+ <body>
+
+ <!-- Make sure all your bars are the first things in your <body> -->
+ <header class="bar bar-nav">
+ <h1 class="title">Ratchet</h1>
+ </header>
+
+ <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
+ <div class="content">
+ <%= yield %>
+ </div>
+
+ </body>
</html>