mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-18 00:45:06 +00:00
17 lines
457 B
Go
17 lines
457 B
Go
package templates
|
|
|
|
import (
|
|
"github.com/chasefleming/elem-go"
|
|
)
|
|
|
|
// AuthWeb renders a page that instructs an administrator to run a CLI command
|
|
// to complete an authentication or registration flow.
|
|
// It is used by both the registration and auth-approve web handlers.
|
|
func AuthWeb(title, description, command string) *elem.Element {
|
|
return page(
|
|
title+" - Headscale",
|
|
H1(elem.Text(title)),
|
|
P(elem.Text(description)),
|
|
codeBlockText(command),
|
|
)
|
|
}
|