SpeciesFileGroup/taxonworks

View on GitHub
app/views/asserted_distributions/_by_otu_table.html.erb

Summary

Maintainability
Test Coverage
<table>
  <tr>
    <th>Geographic Area</th>
    <th>Source</th>
    <th>Updater</th>
    <th>Updated On</th>
    <th></th>
  </tr>
  <tbody>
    <% otu.asserted_distributions.includes(:geographic_area).order('geographic_areas.name ASC').each do |distribution| %>
      <tr>
        <td><%= distribution.geographic_area.name %></td>
        <td><%= source_tag(distribution.source) %></td>
        <td><%= user_tag(distribution.updater) %></td>
        <td><%= object_time_since_update_tag(distribution) %> ago</td>
        <td><%= link_to 'destroy', distribution, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>