app/views/catalog/index.html.erb in curate-0.4.2 vs app/views/catalog/index.html.erb in curate-0.5.0

- old
+ new

@@ -2,13 +2,13 @@ <% content_for :page_class, 'search' %> <% content_for :page_header do %> <div class="navbar"> <div class="navbar-inner"> <ul class="nav"> - <%= type_tab 'Works', 'Work' %> - <%= type_tab 'Collections', 'Collection' %> - <%= type_tab 'People', 'Person' %> + <%= type_tab 'Works', 'Work' %> + <%= type_tab 'Collections', 'Collection' %> + <%= type_tab 'People', 'Person' %> <%= all_type_tab %> </ul> </div> </div> <% end %> @@ -16,14 +16,10 @@ <%= render 'facets' %> <% end %> -<% unless has_search_parameters? %> - <%= render 'home' %> -<% end %> - <% if has_search_parameters? %> <div class="alert alert-info search-constraints"> <i class="icon-search icon-large"></i> Limited to: <%= render_constraints(params) %> @@ -36,12 +32,27 @@ <div class="span9"> <%= render_pagination_info @response, :entry_name=>'item' %> <%= render 'sort_and_per_page' %> </div> </div> -<% end %> <%= render 'results_pagination' %> <%= render 'document_list' %> <%= render 'results_pagination' %> + +<% else %> + + <% if current_user %> + + <%= render 'results_pagination' %> + + <%= render 'document_list' %> + + <%= render 'results_pagination' %> + + <% else %> + <%= render 'home' %> + <% end %> + +<% end %>