]> projects.mako.cc - selectricity/blob - app/views/layouts/embed.rhtml
Streamlined and made more consistent the code that checks for custom skin uploads...
[selectricity] / app / views / layouts / embed.rhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3   <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5     <title>Selectricity</title>
6     <%= stylesheet_link_tag "embed", :media => "all" %>
7     <%begin%>
8       <%= stylesheet_link_tag "ie6hacks", :media => "all" if 
9       request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
10     <%rescue NoMethodError%>
11     <%end%>
12     <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
13   </head>
14
15   <body>
16   <%= @content_for_layout %>
17   </body>
18
19 </html>

Benjamin Mako Hill || Want to submit a patch?