From b8cd19d3ccba302a8f45467bff6a1cd7841a3ef2 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 20 Dec 2021 14:09:46 -0700 Subject: web: housekeeping --- web.go | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/web.go b/web.go index 74ace47..3f5776b 100644 --- a/web.go +++ b/web.go @@ -36,6 +36,7 @@ const index = ` display: block; font-family: monospace; white-space: wrap; + text-align: center; } div{ margin: 1em 0; @@ -73,16 +74,16 @@ const index = `
-

Keep

-

{{- .Err -}}

-

+

Keep

+

{{- .Err -}}

+

{{- .Stats.URLs -}} URLs, {{- .Stats.Users -}} users, {{- .Stats.Guilds -}} guilds, {{- .Stats.Channels -}} channels

-
+ @@ -92,7 +93,7 @@ const index = `
-

+

{{- if or (ne .User "") (ne .Guild "") (ne .Channel "") -}} Entries filtered by: {{- end -}} @@ -100,6 +101,7 @@ const index = ` {{- if ne .Guild "" }} Guild ({{ .Guild -}}){{- end -}} {{- if ne .Channel "" }} Channel ({{ .Channel -}}){{- end -}}

+ {{- if gt (len .Entries) 0 -}} + {{- else -}} +

No results to display

+

Home

+ {{- end -}} + {{- if gt (len .Entries) 0 -}} + {{- end -}} ` -- cgit v1.2.3-54-g00ecf