unepwcmc/SAPI

View on GitHub
app/views/admin/taxon_commons/_list.html.erb

Summary

Maintainability
Test Coverage
<% @taxon_commons.each do |tc| %>
  <%= tc.common_name && tc.common_name.name %>
  (<%= tc.common_name.language.name || tc.common_name.language.iso_code3 %>)
  <%= link_to edit_icon, edit_admin_taxon_concept_taxon_common_url(@taxon_concept, tc), :remote => true %>
  <% if can? :destroy, tc %>
    <%= link_to delete_icon, admin_taxon_concept_taxon_common_url(@taxon_concept, tc),
    data: { confirm: "Warning: you are about to delete data. Are you sure?" },
    :method => :delete %>
  <% end %>
  <br>
<% end %>