51 lines
2.0 KiB
Plaintext
51 lines
2.0 KiB
Plaintext
|
<table class="table table-bordered main-list default">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th><%=t('client_management.upload_date')%></th>
|
||
|
<th><%=t('client_management.status')%></th>
|
||
|
<th><%=t('client_management.start_date')%></th>
|
||
|
<th><%=t('client_management.end_date')%></th>
|
||
|
<th><%=t('client_management.domain_name')%></th>
|
||
|
<th><%=t('client_management.cert_file')%></th>
|
||
|
<th><%=t('client_management.ca_bundle')%></th>
|
||
|
<th><%=t('client_management.private_key')%></th>
|
||
|
<th><%=t('client_management.action')%></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @site_certs.each do |site_cert| %>
|
||
|
<tr>
|
||
|
<td><%=site_cert.upload_date %></td>
|
||
|
<td><span class="<%=site_cert.is_valid ? 'valid_icon' : 'invalid_icon' %>" aria-hidden="true"></span></td>
|
||
|
<td><%=site_cert.display_start_date %></td>
|
||
|
<td><%=site_cert.display_end_date %></td>
|
||
|
<td><%=site_cert.display_domain_names %></td>
|
||
|
<td><%=site_cert.generate_file_link('cert_file')%></td>
|
||
|
<td><%=site_cert.generate_file_link('ca_bundle')%></td>
|
||
|
<td><%=site_cert.generate_file_link('private_key')%></td>
|
||
|
<td>
|
||
|
<%= link_to t(:edit),admin_site_panel_edit_cert_path(site_cert.id),:class=>"btn btn-primary btn-small" %>
|
||
|
<%= link_to t(:delete_),admin_site_panel_destroy_cert_path(site_cert.id),:class=>"btn btn-danger btn-small",:data=>{:method=>"delete",:confirm=>t("client_management.confirm_delete")} %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<div class="bottomnav clearfix">
|
||
|
<div class="pagination pagination-centered"><%=paginate(@site_certs)%></div>
|
||
|
<a class="btn btn-primary pull-right" href="<%=upload_cert_admin_site_panel_index_path%>" title="<%=t('client_management.upload_cert')%>"><%=t('client_management.upload_cert')%></a>
|
||
|
</div>
|
||
|
<style type="text/css">
|
||
|
.valid_icon:before {
|
||
|
content: "✔";
|
||
|
font-weight: bold;
|
||
|
color: green;
|
||
|
font-size: 2em;
|
||
|
}
|
||
|
.invalid_icon:before {
|
||
|
content: "✖";
|
||
|
font-weight: bold;
|
||
|
color: red;
|
||
|
font-size: 2em;
|
||
|
}
|
||
|
</style>
|