docbrown/app/views/admin/data_update_scripts/index.html.erb
Ridhwana 100990f7c6
Basic MVP version of data update script page (#12167)
* 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
2021-01-07 23:12:51 +02:00

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>