mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
32 lines
974 B
Text
32 lines
974 B
Text
<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">
|
|
<div class="overflow-x-auto">
|
|
<table class="table">
|
|
<!-- head -->
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Points</th>
|
|
<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>
|
|
<td><%= import.points.count %></td>
|
|
<td><%= import.created_at.strftime("%d.%m.%Y, %H:%M") %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|