2024-03-15 18:27:31 -04:00
|
|
|
<div id="<%= dom_id import %>">
|
2024-03-24 14:53:19 -04:00
|
|
|
<table class="table">
|
|
|
|
|
<!-- head -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Name</th>
|
|
|
|
|
<th>Processed</th>
|
|
|
|
|
<th>Doubles</th>
|
|
|
|
|
<th>Created at</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to import.name, import, class: 'underline hover:no-underline' %> (<%= import.source %>)
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= "✅" if import.processed == import.raw_points %>
|
|
|
|
|
<%= "#{import.processed}/#{import.raw_points}" %>
|
|
|
|
|
</td>
|
|
|
|
|
<td><%= import.doubles %></td>
|
|
|
|
|
<td><%= import.created_at.strftime("%d.%m.%Y, %H:%M") %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2024-03-15 18:27:31 -04:00
|
|
|
|
|
|
|
|
<% if action_name != "show" %>
|
|
|
|
|
<%= link_to "Show this import", import, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
|
|
|
|
<%= link_to "Edit this import", edit_import_path(import), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %>
|
|
|
|
|
<hr class="mt-6">
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|