41 lines
665 B
HTML
41 lines
665 B
HTML
{{define "body" -}}
|
|
<h2>Peers</h2>
|
|
|
|
<p>
|
|
<a href="/admin/peer/create/">Add Peer</a> /
|
|
<a href="/admin/peer/hosts/">Hosts</a>
|
|
</p>
|
|
|
|
{{if .Peers -}}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>PeerIP</th>
|
|
<th>Name</th>
|
|
<th>Public IP</th>
|
|
<th>Port</th>
|
|
<th>Relay</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Peers -}}
|
|
<tr>
|
|
<td>
|
|
<a href="/admin/peer/view/?PeerIP={{.PeerIP}}">
|
|
{{.PeerIP}}
|
|
</a>
|
|
</td>
|
|
<td>{{.Name}}</td>
|
|
<td>{{ipToString .PublicIP}}</td>
|
|
<td>{{.Port}}</td>
|
|
<td>{{if .Relay}}T{{else}}F{{end}}</td>
|
|
</tr>
|
|
</tbody>
|
|
{{- end}}
|
|
</table>
|
|
{{- else}}
|
|
<p>No peers.</p>
|
|
{{- end}}
|
|
|
|
{{- end}}
|