% if logged_in? %>
<%= ts("Gift Exchange") %>
<% if (@challenge_signup = ChallengeSignup.in_collection(@collection).by_user(current_user).first) %>
- <%= span_if_current ts("My Sign-up"), collection_signup_path(@collection, @challenge_signup) %>
<% elsif @collection.challenge.user_allowed_to_sign_up?(current_user) || @collection.user_is_posting_participant?(current_user) %>
- <%= span_if_current ts("Sign-up Form"), new_collection_signup_path(@collection) %>
<% end %>
<% unless @collection.challenge.assignments_sent_at.nil? %>
<% @challenge_assignments = ChallengeAssignment.in_collection(@collection).by_offering_user(current_user) %>
<% if @challenge_assignments.size == 1 %>
- <%= span_if_current ts("My Assignment"), collection_assignment_path(@collection, @challenge_assignments.first) %>
<% elsif @challenge_assignments.size > 1 %>
- <%= span_if_current ts("My Assignments"), user_assignments_path(current_user, :collection_id => @collection.name) %>
<% end %>
<% end %>
<% if @collection.challenge.user_allowed_to_see_signups?(current_user) %>
-
<%= span_if_current ts("Sign-ups (%{count})", :count => @collection.signups.count), collection_signups_path(@collection) %>
<% end %>
-
<%= span_if_current ts("Sign-up Summary"), summary_collection_signups_path(@collection) %>
<% if @collection.challenge.user_allowed_to_see_requests_summary?(current_user) %>
-
<%= span_if_current ts("Requests Summary"), collection_requests_path(@collection) %>
<% end %>
<% if @collection.challenge.user_allowed_to_see_assignments?(current_user) %>
<% if @collection.challenge.assignments_sent_at.nil? %>
- <%= span_if_current ts("Matching"), collection_potential_matches_path(@collection) %>
<% else %>
- <%= span_if_current ts("Assignments"), collection_assignments_path(@collection) %>
<% end %>
<% end %>
<% end %>