web/admin: add download links for certificates
closes #861 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
24f2932777
commit
e441ac1e43
|
@ -112,6 +112,23 @@ export class CertificateKeyPairListPage extends TablePage<CertificateKeyPair> {
|
||||||
<div class="pf-c-description-list__text">${item.certSubject}</div>
|
<div class="pf-c-description-list__text">${item.certSubject}</div>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="pf-c-description-list__group">
|
||||||
|
<dt class="pf-c-description-list__term">
|
||||||
|
<span class="pf-c-description-list__text">${t`Download`}</span>
|
||||||
|
</dt>
|
||||||
|
<dd class="pf-c-description-list__description">
|
||||||
|
<div class="pf-c-description-list__text">
|
||||||
|
<a class="pf-c-button pf-m-secondary" target="_blank"
|
||||||
|
href="/api/v2beta/crypto/certificatekeypairs/${item.pk}/view_certificate/?download">
|
||||||
|
${t`Download Certificate`}
|
||||||
|
</a>
|
||||||
|
${item.privateKeyAvailable ? html`<a class="pf-c-button pf-m-secondary" target="_blank"
|
||||||
|
href="/api/v2beta/crypto/certificatekeypairs/${item.pk}/view_private_key/?download">
|
||||||
|
${t`Download Private key`}
|
||||||
|
</a>` : html``}
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
Reference in New Issue