<%= ts('Matching for %{collection_title}', :collection_title => @collection.title) %>

<% if @challenge.signup_open %>

<%= ts("You can't generate matches while sign-up is still open. After you have closed sign-ups in Challenge Settings, you will be able to generate potential matches here.") %>

<% elsif @collection.signups.count < 2 %>

<%= ts("You need at least two people to sign up before you can make assignments.") %>

<% elsif @in_progress %> <%= render "in_progress"%> <% elsif @assignment_in_progress %>

<%= ts("Assignments Generating") %> <%= link_to_help "challenge-matching" %>

<%= ts("We're now in the process of generating assignments. This should take less time than potential matching.") %>

<% elsif @collection.potential_matches.empty? %>

<%= ts("Potential Match Generation") %> <%= link_to_help "challenge-matching" %>

<%= render "match_navigation" %>

<%= ts("No potential matches yet!") %>

<% if !@settings || @settings.no_match_required? %> <%= render "no_match_required" %> <% end %> <% if @invalid_signups %> <%= render "invalid_signups" %> <% end %> <% else %> <% # we have potential matches! %> <%= render "potential_matches/potential_matches" %> <% end %>