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.
|
|
|
{% extends "base.html.twig" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
|
|
|
<h2>Certificates</h2>
|
|
|
|
<div class="row">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Serial</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Expires on</th>
|
|
|
|
<th>
|
|
|
|
<a href="/panel/certificates/new" class="button">Create new certificate</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for certificate in user.getCertificates() %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{ certificate.getSerial() }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ certificate.getName() }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ certificate.getExpiresOn().format('Y-m-d H:i:s') }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div class="div pull-right">
|
|
|
|
<button class="revoke btn btn-warning">Revoke</button>
|
|
|
|
<a target="_blank" href="/panel/certificates/download/{{ certificate.getName() }}" class="download btn btn-default">Download certificate</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
|
|
|
<td colspan="4">
|
|
|
|
You don't seem to have any certificates yet, <a href="/panel/certificates/new">want to create one?</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|