SpeciesFileGroup/taxonworks

View on GitHub
app/views/taxon_names/_tasks.html.erb

Summary

Maintainability
Test Coverage
<%= content_tag(:li, edit_taxon_name_link(@taxon_name, target: :edit_task) ) -%>

<% if @taxon_name.is_protonym? && @taxon_name.is_species_rank? %>
  <%= content_tag(
    :li, 
    link_to(
      content_tag(:span, 'Edit type material (task)', 'data-icon' => 'edit', class: 'small-icon'), 
      edit_type_material_task_path(protonym_id: @taxon_name, target: :edit_type_material),
      class: 'navigation-item')
  ) -%>
<% end %>