Permalink
Browse files

Isolate JS and update to HTML5.

  • Loading branch information...
1 parent 43ecdf4 commit 50b1b1712b8a35236f83e7e34aa4adc25ea748f9 @ZenCocoon committed Mar 2, 2011
@@ -1,33 +1,29 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= Tolk::Locale.primary_locale_name %>" lang="<%= Tolk::Locale.primary_locale_name %>">
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>Tolk</title>
-
- <% if respond_to?(:sprockets_include_tag) %>
- <%= sprockets_include_tag %>
- <% else %>
- <%= javascript_include_tag :defaults %>
- <% end %>
-
- <%= stylesheet_link_tag "/tolk/reset", "/tolk/screen" %>
- <%= yield :head %>
-</head>
-
-<body>
- <div id="container">
- <div id="head">
- <h1><span class="home"><%= link_to "Tolk", tolk_root_path %></span><%= yield :locale %></h1>
+<!DOCTYPE html>
+<html lang="<%= Tolk::Locale.primary_locale_name %>">
+ <head>
+ <meta charset="utf-8" />
+ <title>Tolk</title>
+ <!--[if lt IE 9]>
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+ <%= stylesheet_link_tag "/tolk/stylesheets/reset",
+ "/tolk/stylesheets/screen" %>
+ <%= yield :head %>
+ <%= csrf_meta_tag %>
+ </head>
+ <body>
+ <div id="container">
+ <header>
+ <h1><span class="home"><%= link_to "Tolk", tolk_root_path %></span><%= yield :locale %></h1>
+ </header>
+ <%= yield %>
</div>
- <%= yield %>
- </div>
-
- <script type="text/javascript">
- $$('td textarea').each(function(element) {
- element.setStyle({height: element.up('td').measure('height')+'px'});
- });
- </script>
-</body>
+ <% if respond_to?(:sprockets_include_tag) %>
+ <%= sprockets_include_tag %>
+ <% else %>
+ <%= javascript_include_tag '/tolk/javascripts/prototype',
+ '/tolk/javascripts/rails',
+ '/tolk/javascripts/application' %>
+ <% end %>
+ </body>
</html>
@@ -1,2 +0,0 @@
-// Place your application-specific JavaScript functions and classes here
-// This file is automatically included by javascript_include_tag :defaults
Oops, something went wrong.

0 comments on commit 50b1b17

Please sign in to comment.