{{ define "tunnel-menu" }} {{ end }} {{ define "admin-tunnel-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}
{{ if len .ClientError }}

Client error returned:

{{ .ClientError }}

{{ end }} {{ if .Update }}{{ if .Update.Updated }}

Client Software Updated!

The client software for this tunnel has been successfully updated. The tunnel will be restarted soon and will disrupt any existing connection. This page will refresh in 10 seconds...

{{ end }}{{ end }} {{ if .Update }}{{ if not .Update.Status }}

Update Failure

There was a failure during the software updated that was reported by client. Error message returned: "{{ .Update.Error }} "

{{ end }}{{ end }} {{ if .ResetUpdate }}

Client Software Reset

The client was running a software update and has been reset to use the version installed on the host. The client will restart soon and disrupt any existing connections. This page will refresh in 10 seconds...

{{ end }} {{ template "user-snippet" . }} {{ template "admin-tunnel-info-card" . }} {{ template "tunnel-metrics" . }}
{{ template "tunnel-menu" . }}
{{ if .Menu.HTTP }}
{{ if .Configuration }} {{ template "tunnel-manage-http" . }} {{ else }} {{ template "tunnel-domains-content" . }} {{ end }}
{{ end }} {{ if .Menu.TCP }}
{{ if .Configuration }} {{ template "tunnel-manage-port" . }} {{ else }} {{ template "tunnel-tcp-content" . }} {{ end }}
{{ end }} {{ if .Menu.PortMapping }}
{{ if .Configuration }} {{ template "tunnel-manage-portmap" . }} {{ else }} {{ template "tunnel-portmap-content" . }} {{ end }}
{{ end }} {{ if .Menu.Connections }}
{{ 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" }}
{{ end }}
{{ template "menu-toggle" . }}
{{ template "admin-edit-tunnel-dialog" . }} {{ template "admin-tunnel-operations-dialog" . }} {{ template "loading-dialog" . }} {{ end }} {{ define "admin-tunnel-info-card" }}

{{ .Tunnel.Name }}

{{ .Tunnel.Hostname }}

{{ if .Tunnel.IsOnline }} Software Update {{ end }} {{ if .Tunnel.IsUpdated }} Revert {{ end }} {{ if .Tunnel.IsActive }} Shutdown {{ end }}
{{ end }} {{ define "admin-tunnel-operations-dialog" }} {{ end }}