{{ define "admin-tunnel-list-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}
{{ template "tunnel-search-input" . }} {{ template "admin-tunnel-list" . }}
{{ template "menu-toggle" . }} {{ template "admin-edit-tunnel-dialog" . }}
{{ end }} {{ define "admin-tunnel-list" }} {{ if eq (len .Tunnels) 0 }} {{ end }} {{ range $tun := .Tunnels }} {{ end }}
Tunnel {{ if .SortName }} {{ end }} Status {{ if .SortStatus }} {{ end }} Uptime {{ if .SortUptime }} {{ end }} Client Host Bandwidth {{ if .SortBandwidth }} {{ end }} Last Active {{ if .SortLastActive }} {{ end }}

No tunnels found

{{ $tun.Name }}  

Hostname:
{{ $tun.Hostname }}

{{ if eq $tun.State 2 }} {{ else if eq $tun.State 3}} {{ else }} {{ end }} {{ $tun.UptimeString }} {{ if len $tun.Client.OS }} {{ $tun.Client.Version }}
{{ $tun.Client.OS }} / {{ $tun.Client.Arch }}
{{ end }}
{{ $tun.Address }} Daily
{{ $tun.Bandwidth.Daily.String }}

Monthly
{{ $tun.Bandwidth.Monthly.String }}
{{ $tun.LastActive.Format "Jan 2, 2006 15:04" }}
{{ end }} {{ define "admin-edit-tunnel-dialog" }} {{ end }} {{ define "admin-tunnel-search-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}
{{ template "tunnel-search-input" . }} {{ template "admin-tunnel-list" . }}
{{ template "menu-toggle" . }} {{ template "admin-edit-tunnel-dialog" . }}
{{ end }} {{ define "tunnel-search-input" }}
{{ end }}