2024-03-15 18:27:31 -04:00
|
|
|
<div class="w-full">
|
|
|
|
|
<div class="flex justify-between items-center">
|
|
|
|
|
<h1 class="font-bold text-4xl">Imports</h1>
|
|
|
|
|
<%= link_to "New import", new_import_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="imports" class="min-w-full">
|
2024-03-23 08:36:09 -04:00
|
|
|
<div class="overflow-x-auto">
|
|
|
|
|
<table class="table">
|
|
|
|
|
<!-- head -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Name</th>
|
2024-03-24 13:05:39 -04:00
|
|
|
<th>Processed</th>
|
2024-03-23 09:20:20 -04:00
|
|
|
<th>Doubles</th>
|
2024-03-23 08:36:09 -04:00
|
|
|
<th>Created at</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<% @imports.each do |import| %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<%= link_to import.name, import, class: 'underline hover:no-underline' %> (<%= import.source %>)
|
|
|
|
|
</td>
|
2024-03-24 13:05:39 -04:00
|
|
|
<td>
|
|
|
|
|
<%= "✅" if import.processed == import.raw_points %>
|
|
|
|
|
<%= "#{import.processed}/#{import.raw_points}" %>
|
|
|
|
|
</td>
|
2024-03-23 09:20:20 -04:00
|
|
|
<td><%= import.doubles %></td>
|
2024-03-23 08:36:09 -04:00
|
|
|
<td><%= import.created_at.strftime("%d.%m.%Y, %H:%M") %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2024-03-15 18:27:31 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|