From 199288045480856985e377f7475a1991a2decc33 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 19 Nov 2020 10:09:05 -0500 Subject: Add theme-specific error page --- themes/alps/assets/style.css | 13 ++++++++++++- themes/alps/error.html | 14 ++++++++++++++ themes/alps/nav.html | 2 ++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 themes/alps/error.html (limited to 'themes') diff --git a/themes/alps/assets/style.css b/themes/alps/assets/style.css index 27d8463..e07f4e2 100644 --- a/themes/alps/assets/style.css +++ b/themes/alps/assets/style.css @@ -123,8 +123,19 @@ footer { text-align: right; } .actions { padding: 0.5rem; } -.container { flex: 1 auto; display: flex; flex-direction: column; flex-wrap: nowrap; min-width: 0; } +.container { + flex: 1 auto; + display: flex; + flex-direction: column; + flex-wrap: nowrap; + min-width: 0; +} +.container.error { + max-width: 800px; + margin: 0 auto; + padding: 1rem 0; +} aside { flex: 0 0 180px; } diff --git a/themes/alps/error.html b/themes/alps/error.html new file mode 100644 index 0000000..2e25f60 --- /dev/null +++ b/themes/alps/error.html @@ -0,0 +1,14 @@ +{{template "head.html" .}} + +
+
+

{{.Code}}: {{.Status}}

+

+ An error occured. You can try + returning to your inbox, + or contact support. +

+
+
+ +{{template "foot.html"}} diff --git a/themes/alps/nav.html b/themes/alps/nav.html index d14a862..d7eee9c 100644 --- a/themes/alps/nav.html +++ b/themes/alps/nav.html @@ -22,10 +22,12 @@ {{ end }} >Contacts {{ end }} + {{ if .GlobalData.LoggedIn }}
{{ .GlobalData.Username }} Settings Sign Out
+ {{ end }} -- cgit v1.2.3