django-cats/cats/templates/snippets/certificate_information.html
Jan Dittberner 564a00d46d Finish login and registration flow
- add template for login page
- add logout URL
- display user information
2024-09-20 15:59:51 +02:00

41 lines
No EOL
1.2 KiB
HTML

{% 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>