mirror of
https://github.com/h44z/wg-portal.git
synced 2025-10-03 23:16:18 +00:00
Feature (v1): add latest handshake data to API response (#203)
* feature: updated handshake-related fields type * feature: updated handshake representations in templates * feature: added handshake field to Swagger schema
This commit is contained in:
@@ -181,7 +181,15 @@
|
||||
{{if eq $.Device.Type "client"}}
|
||||
<td>{{$p.Endpoint}}</td>
|
||||
{{end}}
|
||||
<td><span data-toggle="tooltip" data-placement="left" title="" data-original-title="{{$p.LastHandshakeTime}}">{{$p.LastHandshake}}</span></td>
|
||||
<td>
|
||||
<span
|
||||
data-toggle="tooltip"
|
||||
data-placement="left"
|
||||
title=""
|
||||
data-original-title="{{if $p.LastHandshakeTime.IsZero}}Never connected, or user is disabled.{{else}}{{formatTime $p.LastHandshakeTime}}{{end}}">
|
||||
{{$p.LastHandshakeRelativeTime}}
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
{{if eq $.Session.IsAdmin true}}
|
||||
<a href="/admin/peer/edit?pkey={{$p.PublicKey}}" title="Edit peer"><i class="fas fa-cog"></i></a>
|
||||
|
Reference in New Issue
Block a user