2018-08-02 05:48:47 -04:00
|
|
|
<td class="text-center">
|
|
|
|
<div class="avatar d-block" style="background-image: url(<%- owner.avatar || '/images/default-avatar.jpg' %>)" title="Owned by <%- owner.name %>">
|
|
|
|
<span class="avatar-status <%- owner.is_disabled ? 'bg-red' : 'bg-green' %>"></span>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2019-09-04 00:51:24 -04:00
|
|
|
<div class="wrap">
|
2019-05-08 01:25:48 -04:00
|
|
|
<%
|
|
|
|
if (provider === 'letsencrypt') {
|
|
|
|
domain_names.map(function(host) {
|
|
|
|
if (host.indexOf('*') === -1) {
|
|
|
|
%>
|
|
|
|
<span class="tag host-link hover-pink" rel="https://<%- host %>"><%- host %></span>
|
|
|
|
<%
|
|
|
|
} else {
|
|
|
|
%>
|
|
|
|
<span class="tag"><%- host %></span>
|
|
|
|
<%
|
|
|
|
}
|
2018-08-07 06:27:20 -04:00
|
|
|
});
|
2019-05-08 01:25:48 -04:00
|
|
|
} else {
|
|
|
|
%><%- nice_name %><%
|
|
|
|
}
|
|
|
|
%>
|
2018-08-02 05:48:47 -04:00
|
|
|
</div>
|
|
|
|
<div class="small text-muted">
|
|
|
|
<%- i18n('str', 'created-on', {date: formatDbDate(created_on, 'Do MMMM YYYY')}) %>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2020-10-06 08:49:02 -04:00
|
|
|
<%- i18n('ssl', provider) %><% if (meta.dns_provider) { %> - <%- dns_providers[meta.dns_provider].display_name %><% } %>
|
2018-08-02 05:48:47 -04:00
|
|
|
</td>
|
2018-08-07 06:27:20 -04:00
|
|
|
<td class="<%- isExpired() ? 'text-danger' : '' %>">
|
|
|
|
<%- formatDbDate(expires_on, 'Do MMMM YYYY, h:mm a') %>
|
2018-08-02 05:48:47 -04:00
|
|
|
</td>
|
|
|
|
<% if (canManage) { %>
|
2018-08-07 06:27:20 -04:00
|
|
|
<td class="text-right">
|
2018-08-02 05:48:47 -04:00
|
|
|
<div class="item-action dropdown">
|
|
|
|
<a href="#" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2021-05-16 10:57:05 -04:00
|
|
|
<span class="dropdown-header"><%- i18n('audit-log', 'certificate') %> #<%- id %></span>
|
2019-05-08 01:25:48 -04:00
|
|
|
<% if (provider === 'letsencrypt') { %>
|
|
|
|
<a href="#" class="renew dropdown-item"><i class="dropdown-icon fe fe-refresh-cw"></i> <%- i18n('certificates', 'force-renew') %></a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<% } %>
|
2018-08-02 05:48:47 -04:00
|
|
|
<a href="#" class="delete dropdown-item"><i class="dropdown-icon fe fe-trash-2"></i> <%- i18n('str', 'delete') %></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<% } %>
|