mirror of
https://github.com/Evolix/chexpire.git
synced 2024-05-04 17:55:11 +02:00
60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
<div class="mb-4 table-responsive">
|
|
<table class="table table-checks">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col"></th>
|
|
<th scope="col">
|
|
<%= t(".th.domain") %>
|
|
<span class="sort-links mx-sm-2 text-nowrap">
|
|
<%== checks_sort_links(:domain) %>
|
|
</span>
|
|
</th>
|
|
<th scope="col">
|
|
<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>
|
|
<span class="sort-links mx-sm-2 text-nowrap">
|
|
<%== checks_sort_links(:domain_expires_at) %>
|
|
</span>
|
|
</th>
|
|
<th scope="col" class="text-right"><%= t(".th.edit") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% checks.each do |check| %>
|
|
<tr class="check-row <%= check_row_class(check) %>">
|
|
<td class="kind">
|
|
<span class="badge badge-info"><%= t(".kind_labels.#{check.kind}") %></span>
|
|
</td>
|
|
<td>
|
|
<%- if check.in_error? %>
|
|
<%== content_tag(
|
|
:span,
|
|
Octicons::Octicon.new("alert", class: "ml-1").to_svg.html_safe,
|
|
class: "in-error text-danger",
|
|
data: {
|
|
toggle: "tooltip",
|
|
placement: "bottom",
|
|
title: check_last_success_title(check)
|
|
}) %>
|
|
<% end %>
|
|
<strong><%= check.domain %></strong>
|
|
</td>
|
|
<td>
|
|
<% 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 %>
|
|
</td>
|
|
<td class="action text-right">
|
|
<%= link_to edit_check_path(check) do %>
|
|
<%== Octicons::Octicon.new("pencil").to_svg %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<%= paginate @checks %>
|