nginx-proxy-manager/frontend/js/app/nginx/certificates-list-item.ejs
Zoey caa72418f1 add multi language support through @lateautumn233/dep updates
Signed-off-by: Zoey <zoey@z0ey.de>
Co-Authored-By: 秋秋 <lateautumn233@foxmail.com>
2024-10-29 12:12:33 +01:00

18 lines
833 B
Text

<div>
<% if (id === 'new') { %>
<div class="title">
<i class="fe fe-shield text-success"></i> <%- i18n('all-hosts', 'new-cert') %>
</div>
<span class="description"><%- i18n('all-hosts', 'with-certbot') %></span>
<% } else if (id > 0) { %>
<div class="title">
<i class="fe fe-shield text-pink"></i> <%- provider === 'other' ? nice_name : domain_names.join(', ') %>
</div>
<span class="description"><%- i18n('tls', provider) %> &ndash; Expires: <%- formatDbDate(expires_on, 'Do MMMM YYYY, h:mm a') %></span>
<% } else { %>
<div class="title">
<i class="fe fe-shield-off text-danger"></i> <%- i18n('all-hosts', 'none') %>
</div>
<span class="description"><%- i18n('all-hosts', 'no-tls') %></span>
<% } %>
</div>