<% # Internet Explorer is fine with JS caching, but cache CSS and kaboom. # Would be great if someone could fix this? js_caching = RefinerySetting.find_or_set(:use_resource_caching, Rails.root.join('public', 'javascripts', 'cache').writable?) css_caching = js_caching && request.env['HTTP_USER_AGENT'] !~ /MSIE/ -%> <% if request.env['HTTP_USER_AGENT'] =~ /MSIE/%> <% end %> <%= RefinerySetting.find_or_set(:site_name, 'Company Name') %> - Refinery <%= stylesheet_link_tag 'refinery/site_bar', 'refinery/refinery', 'refinery/ui', 'refinery/tooltips', 'wymeditor/skins/refinery/skin', :cache => (css_caching ? "cache/refinery" : false) %> <%= yield :head_before_javascript_libraries -%> <%= jquery_include_tags(:caching => js_caching) %> <%= javascript_include_tag 'jquery/jquery.corner.js', 'jquery/jquery.textTruncate.js', 'jquery/jquery.html5-placeholder-shim.js', 'jquery/jquery.timers.js', :cache => (js_caching ? "cache/jquery-plugins" : false) %> <%= javascript_include_tag 'refinery/i18n' %> <%= yield :head_after_javascript_libraries %> <%= javascript_include_tag 'wymeditor/jquery.refinery.wymeditor.js', 'admin', 'refinery/boot_wym', 'refinery/admin', :cache => (js_caching ? "cache/admin" : false) %> <% if request.env['HTTP_USER_AGENT'] =~ /MSIE/ %> <%= "".html_safe %> <%= "".html_safe %> <% end %> <%= yield :head %>