mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
25 lines
875 B
Text
25 lines
875 B
Text
|
|
<%= turbo_stream.replace "import-#{@import.id}" do %>
|
||
|
|
<tr data-import-id="<%= @import.id %>"
|
||
|
|
id="import-<%= @import.id %>"
|
||
|
|
data-points-total="<%= @import.processed %>"
|
||
|
|
class="hover">
|
||
|
|
<td>
|
||
|
|
<%= @import.name %> (<%= @import.source %>)
|
||
|
|
|
||
|
|
<%= link_to '🗺️', map_path(import_id: @import.id) %>
|
||
|
|
|
||
|
|
<%= link_to '📋', points_path(import_id: @import.id) %>
|
||
|
|
</td>
|
||
|
|
<td><%= number_to_human_size(@import.file&.byte_size) || 'N/A' %></td>
|
||
|
|
<td data-points-count>
|
||
|
|
<%= number_with_delimiter @import.processed %>
|
||
|
|
</td>
|
||
|
|
<td data-status-display>deleting</td>
|
||
|
|
<td><%= human_datetime(@import.created_at) %></td>
|
||
|
|
<td class="whitespace-nowrap">
|
||
|
|
<span class="loading loading-spinner loading-sm"></span>
|
||
|
|
<span class="text-sm text-gray-500">Deleting...</span>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<% end %>
|