<%= csrf_meta_tag %> <%= h(@page_title || application_name) %> <%= stylesheet_link_tag 'application' %> <%= yield(:css_head) %> <%= javascript_include_tag 'application' %> <%= yield(:js_head) %> <%= render :partial => '/ga', :formats => [:html] %> <%# need a better way to determine if we are on the home page and using three col layout %> <% if params[:controller].eql?("catalog") and !has_search_parameters? %> <% column_class = "three" %> <% elsif not ['generic_files', 'batch', 'advanced', 'users', 'batch_edits'].include?(params[:controller]) %> <% column_class = "two" %> <% else %> <% column_class = "one" %> <% end %>
<%= render :partial => '/masthead', :formats => [:html] %> <%= render :partial => '/flash_msg' %>
<% if column_class == "one" %>
<%= yield %>
<% else %>
<%= yield :sidebar %>
<% if column_class == "three" %>
<%= yield %>
<% else %>
<%= yield %>
<% end %> <% end %>
<%= render partial: '/footer' %>