2018-08-02 00:09:29 +02:00
|
|
|
<% # Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr> %>
|
|
|
|
<% # License: GNU AGPL-3+ (see full text in LICENSE file) %>
|
2018-07-04 12:33:50 +02:00
|
|
|
<div class="mb-4 table-responsive">
|
2018-07-05 12:26:57 +02:00
|
|
|
<table class="table checks-table">
|
2018-06-05 17:27:12 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col"></th>
|
2018-07-03 20:11:52 +02:00
|
|
|
<th scope="col">
|
2018-07-05 09:54:29 +02:00
|
|
|
<%= t(".th.domain") %>
|
2018-08-31 10:06:16 +02:00
|
|
|
<% unless defined?(skip_sort) %>
|
|
|
|
<span class="sort-links mx-sm-2 text-nowrap">
|
|
|
|
<%== checks_sort_links(:domain) %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
2018-07-03 20:11:52 +02:00
|
|
|
</th>
|
|
|
|
<th scope="col">
|
2018-07-05 09:54:29 +02:00
|
|
|
<span class="d-none d-sm-inline"><%= t(".th.expiry_date") %></span>
|
|
|
|
<span class="d-inline d-sm-none"><%= t(".th.expiry_date_short") %></span>
|
2018-08-31 10:06:16 +02:00
|
|
|
<% unless defined?(skip_sort) %>
|
|
|
|
<span class="sort-links mx-sm-2 text-nowrap">
|
|
|
|
<%== checks_sort_links(:domain_expires_at) %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
2018-07-03 20:11:52 +02:00
|
|
|
</th>
|
2018-07-05 09:54:29 +02:00
|
|
|
<th scope="col" class="text-right"><%= t(".th.edit") %></th>
|
2018-06-05 17:27:12 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% checks.each do |check| %>
|
|
|
|
<tr class="check-row <%= check_row_class(check) %>">
|
2018-07-04 19:05:52 +02:00
|
|
|
<td class="kind">
|
2018-08-06 15:04:15 +02:00
|
|
|
<span class="badge badge-info <%=check.kind%>"><%= t(".kind_labels.#{check.kind}") %></span>
|
2018-07-05 09:54:29 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
2018-07-24 14:57:26 +02:00
|
|
|
<%= check_error(check) if check_in_error?(check) %>
|
2018-06-05 17:27:12 +02:00
|
|
|
<strong><%= check.domain %></strong>
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-07-04 12:33:50 +02:00
|
|
|
<% if check.domain_expires_at.present? %>
|
|
|
|
<%= content_tag :span, format_date(check.domain_expires_at), class: "d-none d-md-inline" %>
|
|
|
|
<%= content_tag :span, format_date(check.domain_expires_at, format: :short), class: "d-inline d-md-none" %>
|
|
|
|
<% end %>
|
2018-06-05 17:27:12 +02:00
|
|
|
</td>
|
2018-07-05 09:54:29 +02:00
|
|
|
<td class="action text-right">
|
2018-07-05 23:26:18 +02:00
|
|
|
<%= link_to edit_check_path(check), "data-turbolinks" => false do %>
|
2018-06-05 17:27:12 +02:00
|
|
|
<%== Octicons::Octicon.new("pencil").to_svg %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2018-07-03 19:46:15 +02:00
|
|
|
|
2018-08-31 10:06:16 +02:00
|
|
|
<%= paginate checks unless defined?(skip_pagination)%>
|