1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/staffs/x509_certificates/_table.html.erb

32 lines
873 B
Text
Raw Normal View History

<table class="table">
<thead>
<tr>
<th scope="col">
<%= X509Certificate.human_attribute_name :id %>
</th>
<th scope="col">
<%= X509Certificate.human_attribute_name :not_before %>
</th>
<th scope="col">
<%= X509Certificate.human_attribute_name :not_after %>
</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% x509_certificates.each do |x509_certificate| %>
<tr>
<td scope="row"><%= x509_certificate.id %></td>
<td><%= localize x509_certificate.not_before, format: :long %></td>
<td><%= localize x509_certificate.not_after, format: :long %></td>
<td>
<% if policy([:staff, x509_certificate]).show? %>
<%= open_action [:staff, x509_certificate] %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>