21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-02 17:00:49 +02:00
chexpire/app/views/checks/_table.html.erb
2018-07-03 19:46:15 +02:00

35 lines
940 B
Plaintext

<div class="mb-4">
<table class="table table-checks">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Domain</th>
<th scope="col">Expiry date</th>
<th scope="col">Edit</th>
</tr>
</thead>
<tbody>
<% checks.each do |check| %>
<tr class="check-row <%= check_row_class(check) %>">
<td>
<span class="badge badge-secondary"><%= check_kind_label(check) %></span>
</td>
<td>
<strong><%= check.domain %></strong>
</td>
<td>
<%= format_utc(check.domain_expires_at) if check.domain_expires_at.present? %>
</td>
<td class="action">
<%= link_to edit_check_path(check) do %>
<%== Octicons::Octicon.new("pencil").to_svg %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
<%= paginate @checks %>