% content_for :title, 'Imports' %>
Here you'll find your imports, but now there are none. Let's <%= link_to 'create one', new_import_path, class: 'link' %>!
| Name | File size | Imported points | Status | Created at | Actions |
|---|---|---|---|---|---|
| <%= link_to import.name, import, class: 'underline hover:no-underline' %> (<%= import.source %>) <%= link_to 'πΊοΈ', map_path(import_id: import.id) %> <%= link_to 'π', points_path(import_id: import.id) %> | <%= number_to_human_size(import.file&.byte_size) || 'N/A' %> | <%= number_with_delimiter import.processed %> | <%= import.status %> | <%= human_datetime(import.created_at) %> | <% if import.deleting? %> Deleting... <% else %> <% if import.file.present? %> <%= link_to 'Download', rails_blob_path(import.file, disposition: 'attachment'), class: "btn btn-outline btn-sm btn-info", download: import.name %> <% end %> <%= link_to 'Delete', import, data: { turbo_confirm: "Are you sure?", turbo_method: :delete }, method: :delete, class: "btn btn-outline btn-sm btn-error" %> <% end %> |