format time, use checkmark for connected state instead of true or false, improve headlines to be more human

This commit is contained in:
Constantin Wildförster 2022-05-19 14:52:24 +02:00
parent 75f427029b
commit 9357beda2f
No known key found for this signature in database
GPG key ID: 5DDDBFF28CC85AFB

View file

@ -42,10 +42,10 @@ Connected Peers
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Public Key</th>
<th scope="col">ReceiveBytes</th>
<th scope="col">TransmitBytes</th>
<th scope="col">Received</th>
<th scope="col">Transmitted</th>
<th scope="col">Connected (Approximation)</th>
<th scope="col">LastHandshakeTime</th>
<th scope="col">Last Handshake</th>
</tr>
</thead>
<tbody>
@ -57,8 +57,8 @@ Connected Peers
<td>{{ $peer.PublicKey }}</td>
<td title="{{ $peer.ReceivedBytes }} Bytes"><script>document.write(bytesToHumanReadable({{ $peer.ReceivedBytes }}))</script></td>
<td title="{{ $peer.TransmitBytes }} Bytes"><script>document.write(bytesToHumanReadable({{ $peer.TransmitBytes }}))</script></td>
<td>{{ $peer.Connected }}</td>
<td>{{ $peer.LastHandshakeTime }}</td>
<td>{{ if $peer.Connected }}✓{{end}}</td>
<td>{{ $peer.LastHandshakeTime.Format "2006-01-02 15:04:05 UTC" }}</td>
</tr>
{{ end }}
</tbody>