{{ define "admin-tunnel-access-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}
{{ template "user-snippet" . }} {{ template "admin-tunnel-info-card" . }} {{ template "tunnel-metrics" . }}
{{ template "tunnel-menu" . }}
{{ template "admin-access-filter" . }} {{ range $metric := .Metrics }} {{ end }}
Service Source Address Data Timestamp
{{ $.ServiceName $metric.ServiceID.String }} {{ $metric.Address }} {{ $metric.DataUsage }} {{ $metric.Closed.Format "15:04:05" }}
{{ $metric.Closed.Format "Jan 2, 2006" }}
{{ template "menu-toggle" . }}
{{ template "admin-edit-tunnel-dialog" . }} {{ template "admin-tunnel-operations-dialog" . }} {{ template "loading-dialog" . }} {{ end }} {{ define "admin-access-filter" }}
{{ end }} {{ define "loading-dialog" }} {{ end }} {{ define "tunnel-metrics" }}

Host: {{ .Tunnel.Address }}

Version: {{ .Tunnel.Client.Version }}

Client: {{ if len .Tunnel.Client.OS }}{{ .Tunnel.Client.OS }} / {{ .Tunnel.Client.Arch }}{{ end }}

Uptime: {{ .Tunnel.UptimeString }}

Daily: {{ .Tunnel.Bandwidth.Daily.String }}

Monthly: {{ .Tunnel.Bandwidth.Monthly.String }}


{{ end }} {{ define "tunnel-domains-content" }} {{ if eq (len .Tunnel.Https) 0 }} {{ end }} {{ range $http := .Tunnel.Https }} {{ end }}
Domain Protocol Daily Monthly

No rules for HTTP traffic found

{{ $http.DomainName }} HTTP{{ if $http.Secure }}/S{{ end }} {{ $http.Bandwidth.Daily.String }} {{ $http.Bandwidth.Monthly.String }}
{{ end }} {{ define "tunnel-tcp-content" }}
Allocate Port
{{ if eq (len .Tunnel.Ports) 0 }} {{ end }} {{ with $tunPage := . }} {{ range $tcp := .Tunnel.Ports }} {{ end }} {{ end }}
Label Port Daily Monthly

No rules for TCP traffic found

{{ $tcp.Label }} {{ $tcp.Port }} {{ $tcp.Bandwidth.Daily.String }} {{ $tcp.Bandwidth.Monthly.String }}
{{ template "admin-tun-release-port-dialog" . }} {{ end }} {{ define "tunnel-portmap-content" }} {{ if eq (len .Tunnel.PortMappings) 0 }} {{ end }} {{ range $pm := .Tunnel.PortMappings }} {{ end }}
Label Active Listening Port Endpoint HTTP

No rules for Port Mappings found

{{ $pm.Label }} {{ if $pm.Active }} {{ else }} {{ end }} {{ $pm.ListenPort }} {{ $pm.Transport }}:{{ $pm.Destination }}:{{ $pm.DstPort }} {{ if $pm.HTTP }} {{ else }} {{ end }}
{{ end }}