django-cats/cats/templates/snippets/certificate_information.html

41 lines
1.2 KiB
HTML
Raw Normal View History

{% load i18n %}
<div class="certificate-information">
<h3>{% translate "Certificate information" %}</h3>
<h4>{% translate "Issued to:" %}</h4>
<dl>
<dt>{% translate "Common Name (CN):" %}</dt>
<dd>{{ certificate.subject_common_name }}</dd>
<dt>{% translate "Serial Number:" %}</dt>
<dd>{{ certificate.serial_number }}</dd>
<dt>
{% blocktranslate trimmed count counter=certificate.emails|length %}
Email address:
{% plural %}
Email addresses:
{% endblocktranslate %}
</dt>
<dd>{{ certificate.emails|join:", " }}</dd>
</dl>
<h4>{% translate "Issued By:" %}</h4>
<dl>
<dt>{% translate "Common Name (CN):" %}</dt>
<dd>{{ certificate.issuer_common_name }}</dd>
<dt>{% translate "Organization (O):" %}</dt>
<dd>{{ certificate.organization }}</dd>
<dt>{% translate "Organizational Unit (OU):" %}</dt>
<dd>{{ certificate.issuer_organizational_unit }}</dd>
</dl>
<h4>{% translate "Validity:" %}</h4>
<dl>
<dt>{% translate "Not valid before:" %}</dt>
<dd>{{ certificate.not_before|date:"r" }}</dd>
<dt>{% translate "Not valid after:" %}</dt>
<dd>{{ certificate.not_after|date:"r" }}</dd>
</dl>
</div>