Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

Commit cde9eec

Browse files
authored
Merge pull request #351 from Authentick/certificates
Update the certificates table
2 parents 03fbd1c + 417f4a9 commit cde9eec

1 file changed

Lines changed: 13 additions & 20 deletions

File tree

Gatekeeper.Client/Pages/Admin/Settings/TabView/LetsEncryptTabView.razor

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
@inject AuthServer.Shared.Admin.LetsEncrypt.LetsEncryptClient LetsEncryptClient
22

3-
<p class="mt-2 font-weight-bold">Managed certificates:</p>
4-
<div class="table-responsive my-2">
5-
<table class="table table-striped table-hover table-bordered mb-4 table-secondary">
6-
<thead class="bg-secondary-dark">
7-
<tr>
8-
<th scope="col">Domain</th>
9-
<th scope="col">Last issued</th>
10-
</tr>
11-
</thead>
12-
<tbody>
13-
@if(_certificateListReply != null) {
14-
foreach(var certificate in _certificateListReply.Certificates) {
15-
<tr>
16-
<td>@certificate.Domain</td>
17-
<td>@certificate.LastIssued</td>
18-
</tr>
19-
}
3+
@if(_certificateListReply != null && _certificateListReply.Certificates.Count != 0) {
4+
<div class="d-flex flex-column simple-card my-4 p-4">
5+
<div class="d-flex flex-row font-weight-bold">
6+
<p class="col-6">Domain</p>
7+
<p class="col-6">Certificate</p>
8+
</div>
9+
@foreach(var certificate in _certificateListReply.Certificates) {
10+
<div class="d-flex flex-row">
11+
<p class="col-6">@certificate.Domain</p>
12+
<p class="col-6">@certificate.LastIssued</p>
13+
</div>
2014
}
21-
</tbody>
22-
</table>
23-
</div>
15+
</div>
16+
}
2417

2518
@code {
2619
private AuthServer.Shared.Admin.CertificateListReply? _certificateListReply;

0 commit comments

Comments
 (0)