Skip to content

Commit

Permalink
updated rails template
Browse files Browse the repository at this point in the history
  • Loading branch information
cousinwil committed Sep 20, 2011
1 parent fbbff53 commit 45c1e07
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
9 changes: 7 additions & 2 deletions base.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,12 +48,17 @@
base.init.home.load('See line 59 of base.html to trace this call.'); base.init.home.load('See line 59 of base.html to trace this call.');
}, 15); }, 15);
}); });
$(window).resize(function{ /* when the window is scaled y the user - absolute element redraws */ $(window).resize(function(){ /* when the window is scaled y the user - absolute element redraws */
base.init.home.size('See line 63 of base.html to trace this call.'); base.init.home.size('See line 63 of base.html to trace this call.');
}); });
})(jQuery); })(jQuery);
</script> </script>


<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
<![endif]-->

</body> </body>
<!-- we built this city on rock and roll (and steeze.) - @cousinwil --> <!-- we built this city on rock and roll (and steeze.) - @cousinwil -->
</html> </html>
25 changes: 15 additions & 10 deletions rails_base/app/views/layouts/base.html.erb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<head> <head>


<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">


<title><%= !params[:title] ? 'Steeze Base Rails Layout' : params[:title] %></title> <title><%= !params[:title] ? 'Steeze Base Rails Layout' : params[:title] %></title>


Expand All @@ -18,14 +19,13 @@
<meta name="description" content="" property="og:description" /> <meta name="description" content="" property="og:description" />
<meta name="copyright" content="" /> <meta name="copyright" content="" />
<meta name="author" content="" /> <meta name="author" content="" />
<%= csrf_meta_tag %>


<%= stylesheet_link_tag 'base', 'app', :media => "all" %> <%= stylesheet_link_tag 'base', 'app', :media => "all" %>


<link rel="shortcut icon" href=""/> <link rel="shortcut icon" href=""/>
<link rel="apple-touch-icon" href=""/> <link rel="apple-touch-icon" href=""/>


<!--[if lte IE 8]> <!--[if lte IE 8]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]--> <![endif]-->
Expand All @@ -34,26 +34,31 @@
<body> <body>


<%= yield %> <%= yield %>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<%= javascript_include_tag 'base' %> <%= javascript_include_tag 'base' %>
<script type="text/javascript"> <script type="text/javascript">
(function($) { (function($) {
$(document).ready(function{ $(document).ready(function{
base.init.home.ready('See line 56 of base.html.erb to trace this call.'); base.init.home.ready('See line 55 of base.html to trace this call.');
}); });
$(window).load(function{ $(window).load(function(){
setTimeout(function(){ /* ensures it loads **after** the loading spinner stops */ setTimeout(function(){ /* ensures it loads **after** the loading spinner stops */
base.init.home.load('See line 60 of base.html.erb to trace this call.'); base.init.home.load('See line 59 of base.html to trace this call.');
}, 15); }, 15);
}); });
$(window).resize(function{ /* when the window is scaled y the user - absolute element redraws */ $(window).resize(function(){ /* when the window is scaled y the user - absolute element redraws */
base.init.home.size('See line 64 of base.html.erb to trace this call.'); base.init.home.size('See line 63 of base.html to trace this call.');
}); });
})(jQuery); })(jQuery);
</script> </script>
<%= yield :view_specific_javascript %> <%= yield :view_specific_javascript %>


<!--[if lt IE 7 ]>
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
<![endif]-->

</body> </body>
<!-- we built this city on rock and roll (and rails, and steeze.) - @cousinwil --> <!-- we built this city on rock and roll (and steeze.) - @cousinwil -->
</html> </html>

0 comments on commit 45c1e07

Please sign in to comment.