Add NTP information to table
This commit is contained in:
parent
4dee9f61da
commit
7226742a6b
|
@ -3,7 +3,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||||
Host
|
NTS-KE Server
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||||
Status
|
Status
|
||||||
|
@ -17,6 +17,12 @@
|
||||||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||||
Cookie Length
|
Cookie Length
|
||||||
</th>
|
</th>
|
||||||
|
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||||
|
NTP Host
|
||||||
|
</th>
|
||||||
|
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||||
|
NTP Port
|
||||||
|
</th>
|
||||||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||||
Certificate Expiration
|
Certificate Expiration
|
||||||
</th>
|
</th>
|
||||||
|
@ -38,6 +44,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="py-4 px-6 whitespace-nowrap">
|
<td class="py-4 px-6 whitespace-nowrap">
|
||||||
<% aead_algorithm = Enum.at(response.aead_algorithms, 0) %>
|
<% aead_algorithm = Enum.at(response.aead_algorithms, 0) %>
|
||||||
|
|
||||||
<span class="group relative">
|
<span class="group relative">
|
||||||
<%= KeyEstablishmentResponse.aead_algorithm_to_id(aead_algorithm) %>
|
<%= KeyEstablishmentResponse.aead_algorithm_to_id(aead_algorithm) %>
|
||||||
<span class="pointer-events-none absolute -top-9 left-0 w-max p-1 rounded-lg bg-zinc-300 dark:bg-zinc-600 opacity-0 transition-opacity group-hover:opacity-100">
|
<span class="pointer-events-none absolute -top-9 left-0 w-max p-1 rounded-lg bg-zinc-300 dark:bg-zinc-600 opacity-0 transition-opacity group-hover:opacity-100">
|
||||||
|
@ -51,6 +58,12 @@
|
||||||
<td class="py-4 px-6 whitespace-nowrap">
|
<td class="py-4 px-6 whitespace-nowrap">
|
||||||
<%= response.cookie_length %>
|
<%= response.cookie_length %>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="py-4 px-6 whitespace-nowrap">
|
||||||
|
<%= Map.get(response, :server, "-") %>
|
||||||
|
</td>
|
||||||
|
<td class="py-4 px-6 whitespace-nowrap">
|
||||||
|
<%= Map.get(response, :port, "-") %>
|
||||||
|
</td>
|
||||||
<td class="py-4 px-6 whitespace-nowrap">
|
<td class="py-4 px-6 whitespace-nowrap">
|
||||||
<%= response.cert_expiration |> DateTime.from_iso8601 |> then(fn {:ok, dt, _} -> Calendar.strftime(dt, "%Y-%m-%d %H:%M:%SZ") end)%>
|
<%= response.cert_expiration |> DateTime.from_iso8601 |> then(fn {:ok, dt, _} -> Calendar.strftime(dt, "%Y-%m-%d %H:%M:%SZ") end)%>
|
||||||
</td>
|
</td>
|
||||||
|
@ -74,7 +87,8 @@
|
||||||
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
||||||
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
||||||
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
||||||
|
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
||||||
|
<td class="py-4 px-6 whitespace-nowrap"> - </td>
|
||||||
<td class="py-4 px-6 whitespace-nowrap">
|
<td class="py-4 px-6 whitespace-nowrap">
|
||||||
<%=
|
<%=
|
||||||
server.last_key_establishment |> Calendar.strftime("%Y-%m-%d %H:%M:%SZ")
|
server.last_key_establishment |> Calendar.strftime("%Y-%m-%d %H:%M:%SZ")
|
||||||
|
|
Loading…
Reference in New Issue