aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/general/_stylesheet_includes.html.erb
blob: ac7c372170ab882f0f259fea127e8880120466f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<% if AlaveteliConfiguration::responsive_styling || params[:responsive] %>
  <%- if @render_to_file %>
    <style>
    <%= Rails.application.assets["responsive/application.css"].to_s %>
    <%= Rails.application.assets["responsive/print.css"].to_s %>
    </style>
  <%- else %>
    <%= render :partial => 'general/responsive_stylesheets' %>
    <%= stylesheet_link_tag 'responsive/print', :rel => "stylesheet", :media => "print"  %>
    <% if !params[:print_stylesheet].nil? %>
    <%= stylesheet_link_tag 'responsive/print', :rel => "stylesheet", :media => "all"  %>
    <% end %>
    <% if AlaveteliConfiguration::force_registration_on_new_request %>
    <%= stylesheet_link_tag 'fancybox.css', :rel => "stylesheet"  %>
    <% end %>
  <% end %>
<% else %>
  <%- if @render_to_file %>
    <style>
    <%= Rails.application.assets["main.css"].to_s %>
    <%= Rails.application.assets["print.css"].to_s %>
    </style>
  <%- else %>
    <%= stylesheet_link_tag 'application', :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 %>
    <!--[if LT IE 7]>
    <%= stylesheet_link_tag 'ie6.css' %>
    <![endif]-->
    <!--[if LT IE 8]>
    <%= stylesheet_link_tag 'ie7.css' %>
    <![endif]-->
    <% if AlaveteliConfiguration::force_registration_on_new_request %>
    <%= stylesheet_link_tag 'fancybox.css', :rel => "stylesheet"  %>
    <% end %>
  <% end %>
<% end %>