<%= ts("Works in Challenges/Collections") %>
<% if @user == current_user %>
- <%= link_to ts('Edit Works'), show_multiple_user_works_path(@user) %>
<% end %>
- <%= span_if_current ts('Works in Collections'), collected_user_works_path(@user) %>
- <%= span_if_current ts('Works'), user_works_path %>
<% if @facets.present? %>
<% # Filters button for narrow screens jumps to filters when JavaScript is disabled and opens filters when JavaScript is enabled %>
- <%= ts("Filters") %>
<% end %>
<% if @works.respond_to?(:total_pages) %>
<%= will_paginate @full_results %>
<% end %>
<%= ts("Listing Works") %>
<% for work in @works %>
<% if work %><%= render 'work_blurb', :work => work %><% end %>
<% end %>
<% if @facets.present? %>
<%= render 'collection_filters' %>
<% end %>
<% if @works.respond_to?(:total_pages) %>
<%= will_paginate @full_results %>
<% end %>