diff options
author | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-08-13 23:36:38 -0400 |
---|---|---|
committer | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-08-13 23:36:38 -0400 |
commit | 16f51fd9dc454b26d9866b080caa17ffe2f8ce27 (patch) | |
tree | 2c031e8c8e629bdf096b00cc445d04e7782af2c3 /templates/project/dashboards | |
parent | 41d8c33a6b87c948a7fe4ae5e53483d42fead422 (diff) |
Updated to use sprockets! Ah, much cleaner.
Diffstat (limited to 'templates/project/dashboards')
-rw-r--r-- | templates/project/dashboards/layout.erb | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/templates/project/dashboards/layout.erb b/templates/project/dashboards/layout.erb index 97cb96d..23d3c9a 100644 --- a/templates/project/dashboards/layout.erb +++ b/templates/project/dashboards/layout.erb @@ -8,34 +8,25 @@ <title><%= yield_content(:title) %></title> - <script type="text/javascript"><%= javascripts %></script> - <script type="text/javascript" src="/javascripts/jquery.knob.js"></script> - <script type="text/javascript" src="/javascripts/jquery.masonry.min.js"></script> + <!-- The javascript and css are managed by sprockets. The files can be found in the /assets folder--> + <script type="text/javascript" src="/assets/application.js"></script> + <link rel="stylesheet" href="/assets/application.css"> - <style><%= stylesheets %></style> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'> - <link rel="stylesheet" href="/stylesheets/font-awesome.css"> - <link rel="icon" href="/images/favicon.ico"> + <link rel="icon" href="/assets/favicon.ico"> - <script type="text/javascript"> - var relayout = function() { - $('#container ul').masonry({ itemSelector: '.widget-container' }); - } - - Dashing.Widget.on('ready', function(){ - setTimeout(function(){ - relayout(); - }, 0); - }); - - $(window).resize(relayout); - </script> </head> -<body> - - <div id="container"> - <%= yield %> - </div> - -</body> + <body> + <div id="container"> + <%= yield %> + </div> + + <% if 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>
\ No newline at end of file |