<%= link_to_unless_current(@collection.title, @collection) %>
<%= collection_icon_display(@collection) %>
- <%= span_if_current ts("Profile"), collection_profile_path(@collection) %>
<% if logged_in? && @collection.closed? && @collection.challenge_type != "PromptMeme" && (@collection.user_is_owner?(current_user) || @collection.user_is_maintainer?(current_user)) %>
- <%= link_to ts("Post to Collection"), new_collection_work_path(@collection) %>
<% else %>
<% if logged_in? && !@collection.closed? && @collection.challenge_type != "PromptMeme" %>
- <%= link_to ts("Post to Collection"), new_collection_work_path(@collection) %>
<% end %>
<% end %>
<% if @collection.challenge # add custom navigation for the specific challenge if there is one %>
<%= render "challenge/#{challenge_class_name(@collection)}/challenge_navigation_user" %>
<% end %>
<% unless @collection.challenge || @collection.user_is_owner?(current_user) %>
<% if (@participant ||= @collection.get_participants_for_user(current_user).first) %>
- <%= link_to ts("Leave"), collection_participant_path(@collection, @participant),
data: { confirm: ts('Are you certain you want to leave this collection?') },
method: :delete %>
<% elsif logged_in? && @collection.moderated? %>
- <%= link_to ts("Join"), join_collection_participants_path(@collection) %>
<% end %>
<% end %>
<% if @collection.user_is_maintainer?(current_user) %>
- <%= link_to ts("Membership"), collection_participants_path(@collection) %>
- <%= link_to ts("Manage Items"), collection_items_path(@collection) %>
<% end %>
<%=raw sanitize_field(@collection, :description) %>
(<%= collection.closed? ? ts("Closed") : ts("Open") %>, <%= collection.moderated? ? ts("Moderated") : ts("Unmoderated") %><%= collection.unrevealed? ? ts(", Unrevealed") : "" %><%= collection.anonymous? ? ts(", Anonymous") : "" %><%= collection.gift_exchange? ? ts(", Gift Exchange Challenge") : "" %><%= collection.prompt_meme? ? ts(", Prompt Meme Challenge") : "" %>)