{{define "body" -}}
<h3>{{.Peer.Name}}</h3>
<p>
  <a href="/admin/peer/edit/?NetworkID={{.Network.NetworkID}}&PeerIP={{.Peer.PeerIP}}">Edit</a> /
  <a href="/admin/peer/delete/?NetworkID={{.Network.NetworkID}}&PeerIP={{.Peer.PeerIP}}">Delete</a>
</p>

{{with .Peer -}}
<table class="def-list">
  <tr><td>Peer IP</td><td>{{.PeerIP}}</td></tr>
  <tr><td>Public IP</td><td>{{ipToString .PublicIP}}</td></tr>
  <tr><td>Port</td><td>{{.Port}}</td></tr>
  <tr><td>Relay</td><td>{{if .Relay}}T{{else}}F{{end}}</td></tr>
</td></tr>
</table>

<details>
  <summary>API Key</summary>
  <p>{{.APIKey}}</p>
</details>


{{- end}}

{{- end}}
