gottfrois/dashing-rails

View on GitHub
lib/generators/templates/layouts/dashboard.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title><%%= yield :title %></title>

    <%%= javascript_include_tag 'dashing/application' %>
    <%%= stylesheet_link_tag 'dashing/application' %>

    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
    <link rel="icon" href="/favicon.ico">
  </head>
  <body>
    <div id="container">
      <%%= yield %>
    </div>

    <%% if Rails.env.development? %>
      <div id="saving-instructions">
        <p>Paste the following at the top of <i><%%= params[:dashboard] %>.erb</i></p>
        <textarea id="gridster-code"></textarea>
      </div>
      <a href="#saving-instructions" id="save-gridster">Save this layout</a>
    <%% end %>
  </body>
</html>