From 60fc4ebb599d82f5c7ddaca52f8aba74f0876381 Mon Sep 17 00:00:00 2001 From: simponic Date: Thu, 28 Mar 2024 16:58:07 -0400 Subject: internal recursive dns server (#2) Co-authored-by: Lizzy Hunt Reviewed-on: https://git.hatecomputers.club/hatecomputers/hatecomputers.club/pulls/2 --- templates/api_keys.html | 13 ++++++------- templates/dns.html | 28 +++++++++++++++++++++------- 2 files changed, 27 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/api_keys.html b/templates/api_keys.html index 93eebd5..0aa3094 100644 --- a/templates/api_keys.html +++ b/templates/api_keys.html @@ -28,13 +28,12 @@

Add An API Key


- - - {{ if .FormError }} + {{ if .FormError }} {{ if (len .FormError.Errors) }} - {{ range $error := .FormError.Errors }} -
{{ $error }}
- {{ end }} + {{ range $error := .FormError.Errors }} +
{{ $error }}
+ {{ end }} {{ end }} - {{ end }} + {{ end }} + {{ end }} diff --git a/templates/dns.html b/templates/dns.html index e317d05..8ea7bee 100644 --- a/templates/dns.html +++ b/templates/dns.html @@ -5,11 +5,12 @@ Name Content TTL + Internal Delete {{ if (eq (len .DNSRecords) 0) }} - No DNS records found + No DNS records found {{ end }} {{ range $record := .DNSRecords }} @@ -17,6 +18,7 @@ {{ $record.Type }} {{ $record.Name }} {{ $record.Content }} + {{ $record.Internal }} {{ $record.TTL }}
@@ -64,14 +66,26 @@ value="{{ .RecordForm.TTL }}" {{ end }} required /> + + + -
- {{ if .FormError }} + {{ if .FormError }} {{ if (len .FormError.Errors) }} - {{ range $error := .FormError.Errors }} -
{{ $error }}
- {{ end }} + {{ range $error := .FormError.Errors }} +
{{ $error }}
+ {{ end }} {{ end }} - {{ end }} + {{ end }} + + + {{ end }} -- cgit v1.2.3-70-g09d2