From c06689dec15cf2642b30c38e7f661aafe8e02889 Mon Sep 17 00:00:00 2001 From: e-zk Date: Tue, 8 Mar 2022 18:34:46 +1000 Subject: [PATCH] fix: make register html/template consistent with other html - makes the html/template for /register follow the same formatting as /apple and /windows - adds a element - minor change for consistency's sake --- api.go | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/api.go b/api.go index b5e885a1..1023e6fc 100644 --- a/api.go +++ b/api.go @@ -45,22 +45,21 @@ type registerWebAPITemplateConfig struct { } var registerWebAPITemplate = template.Must( - template.New("registerweb").Parse(`<html> + template.New("registerweb").Parse(` +<html> + <head> + <title>Registration - Headscale + -

headscale

-

- Run the command below in the headscale server to add this machine to your network: -

- -

- - headscale -n NAMESPACE nodes register --key {{.Key}} - -

- +

headscale

+

Machine registration

+

+ Run the command below in the headscale server to add this machine to your network: +

+
headscale -n NAMESPACE nodes register --key {{.Key}}
- `), -) + +`)) // RegisterWebAPI shows a simple message in the browser to point to the CLI // Listens in /register.