aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/general/_stylesheet_includes.rhtml
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-07-12 13:07:17 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-07-13 08:21:28 +0100
commite9e087d39ef3ce26a0d457b59ef63d14ff65bf4d (patch)
tree9a39878f2e09d207565f4fdc67887bcebb230b00 /app/views/general/_stylesheet_includes.rhtml
parent088bc961328f4d876971994102cde52c1ad49246 (diff)
Factor out stylesheet includes into separate partial (allows easier overriding in themes). Fixes #523
Diffstat (limited to 'app/views/general/_stylesheet_includes.rhtml')
-rw-r--r--app/views/general/_stylesheet_includes.rhtml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/general/_stylesheet_includes.rhtml b/app/views/general/_stylesheet_includes.rhtml
new file mode 100644
index 000000000..2ffa5dadf
--- /dev/null
+++ b/app/views/general/_stylesheet_includes.rhtml
@@ -0,0 +1,21 @@
+ <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
+ <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all" %>
+ <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print" %>
+ <% if !params[:print_stylesheet].nil? %>
+ <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all" %>
+ <% end %>
+ <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
+ <!--[if LT IE 7]>
+ <style type="text/css">@import url("/stylesheets/ie6.css");</style>
+ <![endif]-->
+ <!--[if LT IE 7]>
+ <style type="text/css">@import url("/stylesheets/ie6-custom.css");</style>
+ <![endif]-->
+ <!--[if LT IE 8]>
+ <style type="text/css">@import url("/stylesheets/ie7.css");</style>
+ <![endif]-->
+ <!-- the following method for customising CSS is deprecated; see `doc/THEMES.md` for detail -->
+ <%= stylesheet_link_tag 'custom', :title => "Main", :rel => "stylesheet" %>
+ <% if force_registration_on_new_request %>
+ <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet" %>
+ <% end %>