blob: d2db65c2c168bb21d790815d8cae30f4cdbaa4ed [file] [log] [blame]
beccabroek309b5da2018-11-07 12:22:31 -06001<loader loading="loading"></loader>
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -05002<div id="configuration-cert" class="page">
3 <h1 class="page-title">SSL certificates</h1>
4 <section class="section">
5 <div class="section-content">
6 <div ng-repeat="certificate in certificates | filter:{isExpiring:true}">
7 <div class="alert alert-warning" role="alert">
8 <icon file="icon-warning.svg" aria-hidden="true"></icon>
9 The uploaded {{ certificate.name }} is expiring in
10 {{ getDays(certificate.ValidNotAfter) === 0
11 ? "less than one day!"
12 : getDays(certificate.ValidNotAfter) + " days!" }}
13 Consider replacing it with a new certificate.
14 </div>
15 </div>
16 <div ng-repeat="certificate in certificates | filter:{isExpired:true}">
17 <div class="alert alert-danger" role="alert">
18 <icon file="icon-critical.svg" aria-hidden="true"></icon>
19 The uploaded {{ certificate.name }} has expired! Consider replacing it
20 with a new certificate.
21 </div>
22 </div>
beccabroek309b5da2018-11-07 12:22:31 -060023 </div>
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -050024 </section>
25 <section class="section">
26 <div class="section-content">
27 <button
28 type="button"
29 class="btn btn-tertiary"
30 ng-disabled="availableCertificateTypes.length === 0"
31 ng-click="addCertModal()">
32 <icon class="icon-add" file="icon-plus.svg" aria-hidden="true"></icon>
33 Add new certificate
34 </button>
35 <button type="button" class="btn btn-tertiary" ng-click="addCsrModal()">
36 <icon class="icon-add" file="icon-plus.svg" aria-hidden="true"></icon>
37 Generate CSR
38 </button>
beccabroek309b5da2018-11-07 12:22:31 -060039 </div>
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -050040 <!-- TODO: Replace table with resusable table component -->
41 <div class="section-content certificate__table">
beccabroek309b5da2018-11-07 12:22:31 -060042 <div class="table__row-header">
43 <div class="row column">
44 <div class="certificate__type-header">
45 Certificate
46 </div>
Zbigniew Kurzynskic81cdd42019-07-25 11:52:15 +020047 <div class="certificate__issue-header">
48 Issued by
49 </div>
50 <div class="certificate__issue-header">
51 Issued to
52 </div>
beccabroek309b5da2018-11-07 12:22:31 -060053 <div class="certificate__date-header">
54 Valid from
55 </div>
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -050056 <div class="certificate__status-header"></div>
beccabroek309b5da2018-11-07 12:22:31 -060057 <div class="certificate__date-header">
58 Valid until
59 </div>
60 </div>
61 </div>
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -050062 <div ng-if="certificates.length < 1" class="empty__logs">
63 There have been no certificates added.
64 </div>
beccabroek309b5da2018-11-07 12:22:31 -060065 <div ng-repeat="certificate in certificates">
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -050066 <certificate cert="certificate" reload="loadCertificates()"></certificate>
beccabroek309b5da2018-11-07 12:22:31 -060067 </div>
68 </div>
beccabroek309b5da2018-11-07 12:22:31 -060069 </section>
Dixsie Wolmersc15f66b2019-09-11 15:26:38 -050070</div>