Add NTP information to table
This commit is contained in:
parent
4dee9f61da
commit
7226742a6b
|
@ -3,7 +3,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||
Host
|
||||
NTS-KE Server
|
||||
</th>
|
||||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||
Status
|
||||
|
@ -17,6 +17,12 @@
|
|||
<th scope="col" class="py-3 px-6 whitespace-nowrap">
|
||||
Cookie Length
|
||||
</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">
|
||||
Certificate Expiration
|
||||
</th>
|
||||
|
@ -38,6 +44,7 @@
|
|||
</td>
|
||||
<td class="py-4 px-6 whitespace-nowrap">
|
||||
<% aead_algorithm = Enum.at(response.aead_algorithms, 0) %>
|
||||
|
||||
<span class="group relative">
|
||||
<%= 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">
|
||||
|
@ -51,6 +58,12 @@
|
|||
<td class="py-4 px-6 whitespace-nowrap">
|
||||
<%= response.cookie_length %>
|
||||
</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">
|
||||
<%= response.cert_expiration |> DateTime.from_iso8601 |> then(fn {:ok, dt, _} -> Calendar.strftime(dt, "%Y-%m-%d %H:%M:%SZ") end)%>
|
||||
</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">
|
||||
<%=
|
||||
server.last_key_establishment |> Calendar.strftime("%Y-%m-%d %H:%M:%SZ")
|
||||
|
|
Loading…
Reference in New Issue