1afc8a799Smiramurali23<loader loading="loading"></loader> 2*c15f66b0SDixsie Wolmers<div id="configuration-cert" class="page"> 3*c15f66b0SDixsie Wolmers <h1 class="page-title">SSL certificates</h1> 4*c15f66b0SDixsie Wolmers <section class="section"> 5*c15f66b0SDixsie Wolmers <div class="section-content"> 6*c15f66b0SDixsie Wolmers <div ng-repeat="certificate in certificates | filter:{isExpiring:true}"> 7*c15f66b0SDixsie Wolmers <div class="alert alert-warning" role="alert"> 8afc8a799Smiramurali23 <icon file="icon-warning.svg" aria-hidden="true"></icon> 9*c15f66b0SDixsie Wolmers The uploaded {{ certificate.name }} is expiring in 10*c15f66b0SDixsie Wolmers {{ getDays(certificate.ValidNotAfter) === 0 11*c15f66b0SDixsie Wolmers ? "less than one day!" 12*c15f66b0SDixsie Wolmers : getDays(certificate.ValidNotAfter) + " days!" }} 13*c15f66b0SDixsie Wolmers Consider replacing it with a new certificate. 14afc8a799Smiramurali23 </div> 15afc8a799Smiramurali23 </div> 16*c15f66b0SDixsie Wolmers <div ng-repeat="certificate in certificates | filter:{isExpired:true}"> 17*c15f66b0SDixsie Wolmers <div class="alert alert-danger" role="alert"> 18*c15f66b0SDixsie Wolmers <icon file="icon-critical.svg" aria-hidden="true"></icon> 19*c15f66b0SDixsie Wolmers The uploaded {{ certificate.name }} has expired! Consider replacing it 20*c15f66b0SDixsie Wolmers with a new certificate. 21afc8a799Smiramurali23 </div> 22afc8a799Smiramurali23 </div> 23*c15f66b0SDixsie Wolmers </div> 24*c15f66b0SDixsie Wolmers </section> 25*c15f66b0SDixsie Wolmers <section class="section"> 26*c15f66b0SDixsie Wolmers <div class="section-content"> 27*c15f66b0SDixsie Wolmers <button 28*c15f66b0SDixsie Wolmers type="button" 29*c15f66b0SDixsie Wolmers class="btn btn-tertiary" 30*c15f66b0SDixsie Wolmers ng-disabled="availableCertificateTypes.length === 0" 31*c15f66b0SDixsie Wolmers ng-click="addCertModal()"> 32*c15f66b0SDixsie Wolmers <icon class="icon-add" file="icon-plus.svg" aria-hidden="true"></icon> 33afc8a799Smiramurali23 Add new certificate 34afc8a799Smiramurali23 </button> 35*c15f66b0SDixsie Wolmers <button type="button" class="btn btn-tertiary" ng-click="addCsrModal()"> 36*c15f66b0SDixsie Wolmers <icon class="icon-add" file="icon-plus.svg" aria-hidden="true"></icon> 37afc8a799Smiramurali23 Generate CSR 38afc8a799Smiramurali23 </button> 39afc8a799Smiramurali23 </div> 40*c15f66b0SDixsie Wolmers <!-- TODO: Replace table with resusable table component --> 41*c15f66b0SDixsie Wolmers <div class="section-content certificate__table"> 42afc8a799Smiramurali23 <div class="table__row-header"> 43afc8a799Smiramurali23 <div class="row column"> 44afc8a799Smiramurali23 <div class="certificate__type-header"> 45afc8a799Smiramurali23 Certificate 46afc8a799Smiramurali23 </div> 47afc8a799Smiramurali23 <div class="certificate__issue-header"> 48afc8a799Smiramurali23 Issued by 49afc8a799Smiramurali23 </div> 50afc8a799Smiramurali23 <div class="certificate__issue-header"> 51afc8a799Smiramurali23 Issued to 52afc8a799Smiramurali23 </div> 53afc8a799Smiramurali23 <div class="certificate__date-header"> 54afc8a799Smiramurali23 Valid from 55afc8a799Smiramurali23 </div> 56*c15f66b0SDixsie Wolmers <div class="certificate__status-header"></div> 57afc8a799Smiramurali23 <div class="certificate__date-header"> 58afc8a799Smiramurali23 Valid until 59afc8a799Smiramurali23 </div> 60afc8a799Smiramurali23 </div> 61afc8a799Smiramurali23 </div> 62*c15f66b0SDixsie Wolmers <div ng-if="certificates.length < 1" class="empty__logs"> 63*c15f66b0SDixsie Wolmers There have been no certificates added. 64*c15f66b0SDixsie Wolmers </div> 65afc8a799Smiramurali23 <div ng-repeat="certificate in certificates"> 66*c15f66b0SDixsie Wolmers <certificate cert="certificate" reload="loadCertificates()"></certificate> 67afc8a799Smiramurali23 </div> 68afc8a799Smiramurali23 </div> 69afc8a799Smiramurali23 </section> 70afc8a799Smiramurali23</div> 71