<%= ts("Prompt Meme") %>
<% # added automatically to the collection sidebar for challenges.
# all items should be enclosed in -
and linked with span_if_current!
# @collection is defined, @challenge may not be.
%>
<% @user = current_user %>
-
<%= span_if_current ts("Prompts (%{count})", :count => @collection.prompts.count), collection_requests_path(@collection) %>
<% if logged_in? %>
<% # signup form or link %>
<% if (@challenge_signup = ChallengeSignup.in_collection(@collection).by_user(current_user).first) %>
- <%= span_if_current ts("My Prompts"), collection_signup_path(@collection, @challenge_signup) %>
<% elsif @collection.challenge.user_allowed_to_sign_up?(current_user) %>
- <%= span_if_current ts("Prompt Form"), new_collection_signup_path(@collection) %>
<% end %>
<% if @user.request_claims.unposted.present? %>
-
<%= span_if_current ts("My Claims"), collection_claims_path(@collection, :for_user => true) %>
<% end %>
<% if @collection.user_is_maintainer?(current_user) %>
- <%= link_to ts("Unposted Claims (%{count})", :count => ChallengeClaim.unposted_in_collection(@collection).count), collection_claims_path(@collection) %>
<% end %>
<% end %>