forked from zer.ooo/web
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
9 years ago
|
{% extends 'panel.html.twig' %}
|
||
|
|
||
|
{% block panel_contents %}
|
||
|
{% if user.getActiveCertificates()|length < user.getMaxKeys() %}
|
||
|
<a href="/panel/certificates/new" class="certificate-create">create</a>
|
||
|
{% endif %}
|
||
|
<h1>Certificates</h1>
|
||
|
<div class="undertone">You used {{ user.getActiveCertificates()|length }} of your {{ user.getMaxKeys() }} certificates</div>
|
||
|
<ul class="certificate-list">
|
||
|
{% for certificate in user.getActiveCertificates() %}
|
||
|
<li>
|
||
|
<div class="text">
|
||
|
<div class="name">{{ certificate.getName() }}.{{ user.getUsername() }}</div>
|
||
|
<div class="expiry">expires {{ certificate.getExpiresOn().format('j F Y') }}</div>
|
||
|
</div>
|
||
|
<div class="actions">
|
||
|
{% if not certificate.getPrivateKey() is empty %}
|
||
|
<span class="certificate-download-key">
|
||
|
<a target="_blank" href="/panel/certificates/download-key/{{ certificate.getName() }}">download key</a>
|
||
|
</span>
|
||
|
{% endif %}
|
||
|
<span class="certificate-download">
|
||
|
<a target="_blank" href="/panel/certificates/download/{{ certificate.getName() }}">download</a>
|
||
|
</span>
|
||
|
<span class="certificate-delete">revoke</span>
|
||
|
</div>
|
||
|
</li>
|
||
|
{% else %}
|
||
|
<li>You don't have any certificates :( why not <a href="/panel/certificates/new">create</a> one?</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endblock %}
|