<% # takes local variable line (presenter object) as input to partial %>
<tr>
  <td>
    <% if line.resource && line.resource.geolocation == true %>
      <%=  image_tag('stash_datacite/geolocation.png', size: '20x20', alt: 'Box') %><%= line.title %>
    <% else %>
      <%= line.title %>
    <% end %>
  </td>
  <td>
    Optional: <span class="o-table__highlight2"><%= line.optional_filled %></span> of <%= line.optional_total %>
  </td>
  <td>
    <%= line.files %>
  </td>
  <td>
    <%= line.resource.current_state.resource_state %>
  </td>
  <td>
    <%= default_date(line.resource.current_state.created_at) %>
  </td>
  <td>
    <%= button_to 'Update', stash_url_helpers.metadata_entry_pages_find_or_create_path(resource_id: line.resource.id), class: 'o-button__plain-text7' %>
  </td>
</tr>
<% # takes local variable line (presenter object) as input to partial %>
<tr>
  <td>
    <% if line.resource && line.resource.geolocation == true %>
      <%=  image_tag('stash_datacite/geolocation.png', size: '20x20', alt: 'Box') %><%= line.title %>
    <% else %>
      <%= line.title %>
    <% end %>
  </td>
  <td>
    Optional: <span class="o-table__highlight2"><%= line.optional_filled %></span> of <%= line.optional_total %>
  </td>
  <td>
    <%= line.files %>
  </td>
  <td>
    <%= line.resource.current_state.resource_state %>
  </td>
  <td>
    <%= default_date(line.resource.current_state.created_at) %>
  </td>
  <td>
      <%= button_to 'Update', stash_url_helpers.metadata_entry_pages_new_version_path(resource_id: line.resource.id),
                    class: 'o-button__plain-text7',
                    disabled: (line.resource.identifier && line.resource.identifier.has_in_progress? ) %>
  </td>
</tr>
Disable update if already in progress.
Disable update if already in progress.
