diff --git a/cmd/tailscale/cli/web.html b/cmd/tailscale/cli/web.html index 39375758d..2789d1e68 100644 --- a/cmd/tailscale/cli/web.html +++ b/cmd/tailscale/cli/web.html @@ -11,140 +11,133 @@ -
-
- - - - - - - - - - - -
- {{ with .Profile.LoginName }} -
-

{{.}}

- Switch account -
+
+
+ + + + + + + + + + + +
+ {{ with .Profile.LoginName }} +
+

{{.}}

+ Switch account +
+ {{ end }} +
+ {{ with .Profile.ProfilePicURL }} +
+ {{ else }} +
{{ end }} -
- {{ with .Profile.ProfilePicURL }} -
- {{ else }} -
- {{ end }} -
-
- {{ if .IP }} -
-
- - - - - - -

{{.DeviceName}}

-
-
{{.IP}}
- {{ end }} - {{ if or (eq .Status "NeedsLogin") (eq .Status "NoState") }} - {{ if .IP }} -
-

Your device's key has expired. Reauthenticate this device by logging in again, or learn more.

+
+ {{ if .IP }} +
+
+ + + + + + +

{{.DeviceName}}

- - - - {{ else }} -
-

Log in

-

Get started by logging in to your Tailscale network. Or, learn more at tailscale.com.

-
- - - - {{ end }} - {{ else if eq .Status "NeedsMachineAuth" }} -
- This device is authorized, but needs approval from a network admin before it can connect to the network. -
- {{ else }} -
-

You are connected! Access this device over Tailscale using the device name or IP address above.

-
- Reauthenticate - {{ end }} -
- +Array.from(loginButtons).forEach(el => { + el.addEventListener("click", handleClick); +}) +})();