| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 1 | <loader loading="loading"></loader> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 2 | <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> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 23 | </div> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 24 | </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> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 39 | </div> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 40 | <!-- TODO: Replace table with resusable table component --> | 
|  | 41 | <div class="section-content certificate__table"> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 42 | <div class="table__row-header"> | 
| Zbigniew Kurzynski | f70f425 | 2019-10-23 14:05:58 +0200 | [diff] [blame] | 43 | <div class="row"> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 44 | <div class="certificate__type-header"> | 
|  | 45 | Certificate | 
|  | 46 | </div> | 
| Zbigniew Kurzynski | c81cdd4 | 2019-07-25 11:52:15 +0200 | [diff] [blame] | 47 | <div class="certificate__issue-header"> | 
|  | 48 | Issued by | 
|  | 49 | </div> | 
|  | 50 | <div class="certificate__issue-header"> | 
|  | 51 | Issued to | 
|  | 52 | </div> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 53 | <div class="certificate__date-header"> | 
|  | 54 | Valid from | 
|  | 55 | </div> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 56 | <div class="certificate__status-header"></div> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 57 | <div class="certificate__date-header"> | 
|  | 58 | Valid until | 
|  | 59 | </div> | 
| Zbigniew Kurzynski | f70f425 | 2019-10-23 14:05:58 +0200 | [diff] [blame] | 60 | <div class="certificate__actions-header"> | 
|  | 61 | Actions | 
|  | 62 | </div> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 63 | </div> | 
|  | 64 | </div> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 65 | <div ng-if="certificates.length < 1" class="empty__logs"> | 
|  | 66 | There have been no certificates added. | 
|  | 67 | </div> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 68 | <div ng-repeat="certificate in certificates"> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 69 | <certificate cert="certificate" reload="loadCertificates()"></certificate> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 70 | </div> | 
|  | 71 | </div> | 
| beccabroek | 309b5da | 2018-11-07 12:22:31 -0600 | [diff] [blame] | 72 | </section> | 
| Dixsie Wolmers | c15f66b | 2019-09-11 15:26:38 -0500 | [diff] [blame] | 73 | </div> |