diff --git a/pkg/webui/html/accounts.html b/pkg/webui/html/accounts.html index 1caddbc..cca818f 100644 --- a/pkg/webui/html/accounts.html +++ b/pkg/webui/html/accounts.html @@ -1,60 +1,60 @@ {{ define "main" }} -
-
- User Accounts - Create New User Account -
-
- - - - - - - - - - - {{ range .Accounts }} - - - - - - - {{ end }} - -
UsernameCreatedLast LoginIs Admin
{{ .Username }}{{ .Created }}{{ .LastLogin }}{{ .IsAdmin }}
-
-
-
-
-
- - - {{ if .UsernameDuplicate }} - This username already exist - {{ else if .UsernameInvalid }} - Invalid username - {{ end }} -
-
- -
- -
-
+

User Accounts

+
+
+

There are {{ len .Accounts }} user accounts.

+

Use this page to inspect user accounts or create a new one.

+
+
+ New User Account +
+ + +
+ {{ if .UsernameDuplicate }} + This username already exist. + {{ else if .UsernameInvalid }} + + + Invalid username. + + Username must start with a letter and be composed of only letters, numbers or underscores. + + + + {{ end }} +
+ +
+
+
+ + + + + + + + + + + {{ range .Accounts }} + + + + + + + {{ end }} + +
UsernameCreatedLast LoginIs Admin
{{ .Username }}{{ .Created }}{{ .LastLogin }}{{ .IsAdmin }}
+
{{ end }} diff --git a/pkg/webui/versions.go b/pkg/webui/versions.go index 1a7c2ba..2ad4a28 100644 --- a/pkg/webui/versions.go +++ b/pkg/webui/versions.go @@ -3,7 +3,6 @@ package webui import ( "html/template" "net/http" - "path" "git.adyxax.org/adyxax/tfstated/pkg/database" "git.adyxax.org/adyxax/tfstated/pkg/model"