{{ define "admin-ports" }} {{ template "head" . }} {{ template "admin-port-list-content" . }} {{ template "resources" }} {{ end }} {{ define "admin-port-list-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}
{{ template "admin-port-list" . }}
{{ template "menu-toggle" . }}
{{ end }} {{ define "admin-port-list" }} {{ if eq (len .Ports) 0 }} {{ end }} {{ range $port := .Ports }} {{ end }}
Tunnel Port Address Allocated At Actions

No ports allocated

{{ if ne $port.Tun.Name "unnamed" }}{{ $port.Tun.Name }}
{{ end }} {{ $port.Tun.Hostname }}
{{ $port.Port.Port }} {{ if $port.Tun.Address }} {{ $port.Tun.Address }} {{ else }} {{ end }} {{ if $port.Port.Created.IsZero }} {{ else }}{{ $port.Port.Created.Format "Jan 2, 2006 15:04" }}{{ end }}
{{ template "admin-tun-release-port-dialog" . }} {{ end }}