<table class="table mt-3">
<thead>
<tr>
<th scope="col">
<%= Contact.human_attribute_name :contact_network %>
</th>
<%= Contact.human_attribute_name :value %>
<%= Contact.human_attribute_name :send_security_notifications %>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% contacts.each do |contact| %>
<td><%= contact.contact_network.name %></td>
<td><%= truncate contact.value %></td>
<td><%= bool_badge contact.send_security_notifications %></td>
<td>
<% if policy([:settings, contact]).destroy? %>
<%= link_to(
[:settings, contact],
method: :delete,
class: 'btn btn-danger btn-sm',
data: { confirm: contact_destroy_confirmation(contact) },
) do %>
<i class="fas fa-trash"></i>
<% end %>
</td>
</tbody>
</table>