<% if @user %> <%= t(".page_heading.users_collections", user: @user.login) %> <% elsif @collection %> <%= t(".page_heading.challenges_subcollections_in", collection: @collection.title) %> <% elsif @work %> <%= t(".page_heading.collections_including", work: @work.title) %> <% else %> <%= t(".page_heading.collections_in_the", archive: ArchiveConfig.APP_NAME) %> <% end %>

<% if @collections.empty? %> <%= ts("Sorry, there were no collections found.") %> <% else %> <%= search_header @collections, @query, ts("Collection") %> <% end %>

<%= ts("Navigation") %>

<% unless @collections.blank? %> <%= will_paginate @collections %>

<%= ts("List of Collections") %>

<% end %> <% if @sort_and_filter %> <%= render 'collections/filters' %> <% end %> <% unless @collections.blank? %> <%= will_paginate @collections %> <% end %>