app/views/bulkrax/importers/index.html.erb in bulkrax-1.0.2 vs app/views/bulkrax/importers/index.html.erb in bulkrax-2.0.0
- old
+ new
@@ -29,26 +29,24 @@
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% @importers.each do |importer| %>
- <tr>
- <th scope="row"><%= link_to importer.name, importer_path(importer) %></th>
- <td>
- <%= importer.status %>
- </td>
- <td><%= importer.last_imported_at.strftime("%b %d, %Y") if importer.last_imported_at %></td>
- <td><%= importer.next_import_at.strftime("%b %d, %Y") if importer.next_import_at %></td>
- <td><%= importer.importer_runs.last&.enqueued_records %></td>
- <td><%= (importer.importer_runs.last&.processed_collections || 0) + (importer.importer_runs.last&.processed_records || 0) %></td>
- <td><%= (importer.importer_runs.last&.failed_collections || 0) + (importer.importer_runs.last&.failed_records || 0) %></td>
- <td><%= importer.importer_runs.last&.deleted_records %></td>
- <td><%= importer.importer_runs.last&.total_collection_entries %></td>
- <td><%= importer.importer_runs.last&.total_work_entries %></td>
- <td><%= link_to raw('<span class="glyphicon glyphicon-info-sign"></span>'), importer_path(importer) %></td>
- <td><%= link_to raw('<span class="glyphicon glyphicon-pencil"></span>'), edit_importer_path(importer) %></td>
- <td><%= link_to raw('<span class="glyphicon glyphicon-remove"></span>'), importer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
+ <tr>
+ <th scope="row"><%= link_to importer.name, importer_path(importer) %></th>
+ <td><%= importer.status %></td>
+ <td><%= importer.last_imported_at.strftime("%b %d, %Y") if importer.last_imported_at %></td>
+ <td><%= importer.next_import_at.strftime("%b %d, %Y") if importer.next_import_at %></td>
+ <td><%= importer.importer_runs.last&.enqueued_records %></td>
+ <td><%= (importer.importer_runs.last&.processed_collections || 0) + (importer.importer_runs.last&.processed_records || 0) %></td>
+ <td><%= (importer.importer_runs.last&.failed_collections || 0) + (importer.importer_runs.last&.failed_records || 0) %></td>
+ <td><%= importer.importer_runs.last&.deleted_records %></td>
+ <td><%= importer.importer_runs.last&.total_collection_entries %></td>
+ <td><%= importer.importer_runs.last&.total_work_entries %></td>
+ <td><%= link_to raw('<span class="glyphicon glyphicon-info-sign"></span>'), importer_path(importer) %></td>
+ <td><%= link_to raw('<span class="glyphicon glyphicon-pencil"></span>'), edit_importer_path(importer) %></td>
+ <td><%= link_to raw('<span class="glyphicon glyphicon-remove"></span>'), importer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ </tr>
<% end %>
</tbody>
</table>
</div>
<% else %>