<% provide :page_header do %>

Importers

<%= link_to new_importer_path, class: 'btn btn-primary' do %> <%= t(:'helpers.action.importer.new') %> <% end %>
<% end %>
<% if @importers.present? %>
<% @importers.each do |importer| %> <% end %>
Name Status Last Run Next Run Entries Enqueued Entries Processed Entries Failed Entries Deleted Upstream Total Collection Entries Total Work Entries Total File Set Entries
<%= link_to importer.name, importer_path(importer) %> <%= importer.status %> <%= importer.last_imported_at.strftime("%b %d, %Y") if importer.last_imported_at %> <%= importer.next_import_at.strftime("%b %d, %Y") if importer.next_import_at %> <%= importer.last_run&.enqueued_records %> <%= (importer.last_run&.processed_records || 0) %> <%= (importer.last_run&.failed_records || 0) %> <%= importer.last_run&.deleted_records %> <%= importer.last_run&.total_collection_entries %> <%= importer.last_run&.total_work_entries %> <%= importer.last_run&.total_file_set_entries %> <%= link_to raw(''), importer_path(importer) %> <%= link_to raw(''), edit_importer_path(importer) %> <%= link_to raw(''), importer, method: :delete, data: { confirm: 'Are you sure?' } %>
<% else %>

No importers have been created.

<% end %>