]> projects.mako.cc - selectricity-live/blobdiff - app/views/layouts/main.rhtml
Merged jdong
[selectricity-live] / app / views / layouts / main.rhtml
index 5ae18dc81a11db933e7b20df5b9627d299075ad6..1542b84acb84a7cad262b9f88008466dd95b5733 100644 (file)
@@ -5,6 +5,9 @@
     <%= stylesheet_link_tag "common", :media => "all" %>
     <%= stylesheet_link_tag "main", :media => "all" %>
     <%= stylesheet_link_tag *(@stylesheets) %>
+    <%= stylesheet_link_tag "ie6hacks", :media => "all" if \
+      request.methods.include?(:user_agent) and \
+      request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
     <%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
   </head>
 

Benjamin Mako Hill || Want to submit a patch?