otwarchive-sunsetarchive/app/views/potential_matches/_no_potential_recipients.html.erb
2026-03-17 01:16:49 -04:00

24 lines
1.4 KiB
Text
Executable file

<% if @assignments_with_no_potential_recipients.present? %>
<div class="matching listbox group">
<h3 class="heading"><%= ts("Participants with No Potential Recipients") %></h3>
<dl class="index group">
<% @assignments_with_no_potential_recipients.each do |assignment| %>
<dt class="byline" title="<%= ts("pseud") %>"><%= link_to assignment.offer_byline, collection_signup_path(@collection, assignment.offer_signup) %></dd>
<dd>
<ul class="actions" role="menu">
<li title="<%= ts("email") %>"><%= mailto_link assignment.offer_signup.pseud.user, :subject => "[#{h(@collection.title)}] Message from Collection Maintainer" %></li>
<li><%= link_to ts("Edit"), edit_collection_signup_path(@collection, assignment.offer_signup) %></li>
<li>
<%= button_to ts("Regenerate Matches For %{name}", name: assignment.offer_byline),
regenerate_for_signup_collection_potential_matches_path(@collection, signup_id: assignment.offer_signup.id),
method: :post %>
</li>
<li role="button"><%= link_to ts("Delete"),
collection_signup_path(@collection, assignment.offer_signup), data: {confirm: ts('Are you sure?')}, :method => :delete %></li></ul>
</dd>
<% end %>
</dl>
</div>
<% else %>
<p><%= ts("All participants have at least one potential recipient!")%></p>
<% end %>