dawarich/app/views/imports/_import.html.erb

29 lines
854 B
Text
Raw Normal View History

2024-03-15 18:27:31 -04:00
<div id="<%= dom_id import %>">
2024-03-24 14:53:19 -04:00
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Imported points</th>
2024-03-24 14:53:19 -04:00
<th>Created at</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<%= link_to import.name, import, class: 'underline hover:no-underline' %> (<%= import.source %>)
</td>
<td>
<%= "#{number_with_delimiter import.points.size}" %>
2024-03-24 14:53:19 -04:00
</td>
2025-04-04 14:15:05 -04:00
<td><%= human_datetime(import.created_at) %></td>
2024-03-24 14:53:19 -04:00
</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>