32 lines
946 B
HTML
32 lines
946 B
HTML
{{define "content"}}
|
|
<h2>SSL / TLS Certificates</h2>
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr><th>Domain</th><th>Issuer</th><th>Expires</th><th>Status</th><th>Actions</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Data.Certs}}
|
|
<tr>
|
|
<td>{{.Domain}}</td>
|
|
<td>{{.Issuer}}</td>
|
|
<td>{{.Expiry}}</td>
|
|
<td>
|
|
{{if .Valid}}
|
|
<span class="badge badge-ok">Valid</span>
|
|
{{else}}
|
|
<span class="badge badge-err">Expired</span>
|
|
{{end}}
|
|
</td>
|
|
<td>
|
|
<form method="POST" action="/ssl/renew/{{.Domain}}" style="display:inline">
|
|
<button class="btn btn-sm">Renew</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{{else}}
|
|
<tr><td colspan="5">No certificates found.</td></tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{end}}
|