From 55f56418df58d196daa97f3c08e3b6305e831b82 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Fri, 5 Aug 2016 06:35:19 +0100 Subject: Use bootstrap Move templates and static under server/ --- server/templates/certs.go | 70 +++++++++++++++++++++++++++++++++++++++++++++++ server/templates/token.go | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 server/templates/certs.go create mode 100644 server/templates/token.go (limited to 'server/templates') diff --git a/server/templates/certs.go b/server/templates/certs.go new file mode 100644 index 0000000..2bda893 --- /dev/null +++ b/server/templates/certs.go @@ -0,0 +1,70 @@ +package templates + +// Certs lists all unexpired issued certificates. +const Certs = ` + + + + + + + + Issued Certificates + + + + + + + + + +
+ + +
+ {{ .CSRF }} + + + + + + + + + + + {{range .Certs}} +
+
+ + + + + + + + + {{ end }} +
IDCreatedExpiresPrincipalsRevokedRevoke
{{.KeyID}}{{.CreatedAt}}{{.Expires}}{{.Principals}}{{.Revoked}} + {{if not .Revoked}} + + {{end}} +
+
+ +
+ + + + + + + + +` diff --git a/server/templates/token.go b/server/templates/token.go new file mode 100644 index 0000000..d21c03f --- /dev/null +++ b/server/templates/token.go @@ -0,0 +1,56 @@ +package templates + +// Token is the page users see when authenticated. +const Token = ` + + + + + + + + Token + + + + + + + + + + +
+ +
+ +

+ The token will expire in < 1 hour. +

+
+
+ + + + + + +` -- cgit v1.2.3