* feat: add a basic table template with the basic info for the data scripts * feat: add nav element to sidebar * feat: add twemoji * feat: success and failed icon * feat: don't wrap the status title * feat: make data update scripts accessible only be tech_admin * chore: add the file name to the table * test: write tests for the data_update_script_controller * chore: remove icons and add status
26 lines
790 B
Text
26 lines
790 B
Text
<div class="crayons-card p-6 grid gap-6">
|
|
<table class="crayons-table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">ID</th>
|
|
<th scope="col">Filename</th>
|
|
<th scope="col" class="whitespace-nowrap">Status</th>
|
|
<th scope="col">Created at</th>
|
|
<th scope="col">Run at</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="crayons-card">
|
|
<% @data_update_scripts.each do |script| %>
|
|
<tr>
|
|
<td class="whitespace-nowrap"><%= script.id %></td>
|
|
<td><%= script.file_name %></td>
|
|
<td class="whitespace-nowrap justify-content-center">
|
|
<%= script.status %>
|
|
</td>
|
|
<td><%= script.created_at %></td>
|
|
<td><%= script.run_at %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</main>
|