<% # display a summary version of what users have requested and offered %> <% # requires locals :challenge_collection :tag_type :summary_tags :generated_live %>

<%= ts("Sign-up Summary for %{challenge_collection}", :challenge_collection => challenge_collection.title) %>

<% unless generated_live %>

<%= ts("Last generated at:") %> <%= time_in_zone(Time.now, (challenge_collection.challenge.time_zone || Time.zone.name)) %> <%= ts("(Generated hourly on request while sign-ups are open.)") %>

<% end %> <% if summary_tags.empty? %>

<%= ts("Tags were not used in this Challenge, so there is no summary to display here.") %>

<% else %>

<%= ts("Requested %{tag_type}", tag_type: tag_type_label_name(tag_type).pluralize) %>

<%= ts('Listed by fewest offers and most requests.') %>

"> <% summary_tags.each do |tag| %> <% end %>
<%=ts("Requests and Offers for Requested %{tag_type}", tag_type: tag_type_label_name(tag_type)) %>
<%= tag_type_label_name(tag_type) %> <%= ts('Requests') %> <%= ts('Offers') %>
<%= tag.name %> <%= tag.requests.to_i %> <%= tag.offers.to_i %>
<% end %>