Revize 81e73700
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
static/js/components.js | ||
---|---|---|
4 | 4 |
// certificate = certificate to be displayed by the list item |
5 | 5 |
props: ["certificate"], |
6 | 6 |
template: "<tr>"+ |
7 |
"<td class='align-middle'>{{ certificate.CN }}</td>"+
|
|
7 |
"<td class='align-middle'><a :href='certificateURL' class='font-weight-bold'>{{ certificate.CN }}</a></td>"+
|
|
8 | 8 |
"<td class='align-middle'>{{ certificate.notBefore }}</td>"+ |
9 | 9 |
"<td class='align-middle'>{{ certificate.notAfter }}</td>"+ |
10 | 10 |
"<td class='align-middle'>" + |
... | ... | |
14 | 14 |
" <div v-if='certificate.usage.SSL'>SSL/TLS</div>" + |
15 | 15 |
"</td>"+ |
16 | 16 |
"<td class='align-middle'><button v-on:click='onCertificateDownload()'>Download certificate</button></td>"+ |
17 |
"<td class='align-middle'><button v-on:click='onCertificateChainDownload()'>Download chain of trust</button></td>"+
|
|
18 |
"<td class='align-middle'><button v-on:click='onCertificateRootDownload()'>Download chain root</button></td>"+
|
|
17 |
"<td v-if='certificate.issuer.id !== certificate.id' class='align-middle'><a :href='issuerURL' class='font-weight-bold'>{{ certificate.issuer.CN }}</a></td>"+
|
|
18 |
"<td v-if='certificate.issuer.id === certificate.id' class='align-middle'><a :href='issuerURL' class='font-weight-light'>self-signed</a></td>"+
|
|
19 | 19 |
"</tr>", |
20 |
computed: { |
|
21 |
certificateURL: function () { |
|
22 |
return "/static/certificate.html?id=" + this.certificate.id; |
|
23 |
}, |
|
24 |
issuerURL: function () { |
|
25 |
return "/static/certificate.html?id=" + this.certificate.issuer.id; |
|
26 |
} |
|
27 |
}, |
|
20 | 28 |
methods: { |
21 | 29 |
// Get the certificate PEM data from the server and downloads it to users computer |
22 | 30 |
onCertificateDownload: function () { |
Také k dispozici: Unified diff
Re #8583 - Improved certificate listing