projects
/
selectricity-live
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
13da345
)
Commit test case fix that restores IE6 transparency
author
John Dong
<jdong@mit.edu>
Fri, 31 Aug 2007 22:06:33 +0000
(18:06 -0400)
committer
John Dong
<jdong@mit.edu>
Fri, 31 Aug 2007 22:06:33 +0000
(18:06 -0400)
app/views/layouts/main.rhtml
patch
|
blob
|
history
diff --git
a/app/views/layouts/main.rhtml
b/app/views/layouts/main.rhtml
index 1542b84acb84a7cad262b9f88008466dd95b5733..bdb206a9fc8af29049a0d7e35190fb7602411df1 100644
(file)
--- a/
app/views/layouts/main.rhtml
+++ b/
app/views/layouts/main.rhtml
@@
-5,9
+5,11
@@
<%= stylesheet_link_tag "common", :media => "all" %>
<%= stylesheet_link_tag "main", :media => "all" %>
<%= stylesheet_link_tag *(@stylesheets) %>
<%= 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 \
+ <%
begin%>
+ <%= stylesheet_link_tag "ie6hacks", :media => "all" if
request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
request.user_agent =~ /msie\s(5\.[5-9]|[6]\.[0-9]*).*(win)/i %>
+ <%rescue NoMethodError%>
+ <%end%>
<%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
</head>
<%= javascript_include_tag "prototype", "effects", "dragdrop", "controls" %>
</head>
Benjamin Mako Hill
||
Want to submit a patch?