From 5080c566ac31ec622986c04f1812a1e88c88210e Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Fri, 29 Mar 2024 16:35:04 -0600 Subject: guestbook! --- templates/api_keys.html | 16 +++++++------- templates/dns.html | 28 +++++++++++++----------- templates/guestbook.html | 57 +++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 79 insertions(+), 22 deletions(-) (limited to 'templates') diff --git a/templates/api_keys.html b/templates/api_keys.html index 0aa3094..cd4d274 100644 --- a/templates/api_keys.html +++ b/templates/api_keys.html @@ -1,23 +1,23 @@ {{ define "content" }} - - - + + + {{ if (eq (len .APIKeys) 0) }} - + {{ end }} {{ range $key := .APIKeys }} - + @@ -25,9 +25,9 @@
KeyCreated AtRevokekey.created at.revoke.
No API Keys Foundno api keys found
{{ $key.Key }}{{ $key.CreatedAt }}{{ $key.CreatedAt }}
- +

-

Add An API Key

+

generate key.


- + {{ if .FormError }} {{ if (len .FormError.Errors) }} {{ range $error := .FormError.Errors }} diff --git a/templates/dns.html b/templates/dns.html index a794789..d16ed89 100644 --- a/templates/dns.html +++ b/templates/dns.html @@ -1,16 +1,17 @@ {{ define "content" }} - - - - - - + + + + + + + {{ if (eq (len .DNSRecords) 0) }} - + {{ end }} {{ range $record := .DNSRecords }} @@ -20,6 +21,7 @@ +
TypeNameContentTTLInternalDeletetype.name.content.ttl.internal.created.delete.
No DNS records foundno dns records found.
{{ $record.Content }} {{ $record.TTL }} {{ $record.Internal }}{{ $record.CreatedAt }} @@ -31,10 +33,10 @@

-

Add DNS Records

+

add dns records.

note that the name must be a subdomain of {{ .User.Username }}


- + - + - + - +