plugins/ShinyCMS/app/views/shinycms/admin/email_recipients/index.html.erb
<%= render partial: 'admin/includes/search', locals: { placeholder: t( '.search' ), action: shinycms.search_email_recipients_path } %>
<table class="table table-responsive-sm table-striped">
<thead>
<tr>
<th>
Email
</th>
<th>
Name
</th>
<th>
Status
</th>
<th>
</th>
</tr>
</thead>
<tbody>
<% @recipients.each do |recipient| %>
<tr>
<td>
<%= recipient.email %>
</td>
<td>
<%= recipient.name %>
</td>
<td>
<% if recipient.confirmed? %>
<%= t( '.confirmed' ) %>
<% else %>
<%= t( '.unconfirmed' ) %>
<% end %>
</td>
<td class="actions">
<%= link_to t( '.do_not_contact' ), shinycms.do_not_contact_email_recipient_path( recipient ), method: :put %>
<%= link_to t( 'delete' ), shinycms.email_recipient_path( recipient ),
method: :delete, data: { confirm: t( 'are_you_sure' ) } %>
</td>
</tr>
<% end %>
<tbody>
</table>
<%= render partial: 'admin/includes/pager', locals: { pagy: @pagy, name: @recipients.name } %>