aboutsummaryrefslogtreecommitdiff
path: root/themes/alps
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-19 10:09:05 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-19 10:09:05 -0500
commit199288045480856985e377f7475a1991a2decc33 (patch)
tree80517ad8577d391dd58c500e77c3694e19fd6ee2 /themes/alps
parent5087e4b327732ba826bf6c839c06dcca1f8314f7 (diff)
downloadalps-199288045480856985e377f7475a1991a2decc33.tar.gz
alps-199288045480856985e377f7475a1991a2decc33.zip
Add theme-specific error page
Diffstat (limited to 'themes/alps')
-rw-r--r--themes/alps/assets/style.css13
-rw-r--r--themes/alps/error.html14
-rw-r--r--themes/alps/nav.html2
3 files changed, 28 insertions, 1 deletions
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" .}}
+
+<div class="page-wrap">
+ <div class="container error">
+ <h1>{{.Code}}: {{.Status}}</h1>
+ <p>
+ An error occured. You can try
+ <a href="/">returning to your inbox</a>,
+ or contact support.
+ </p>
+ </div>
+</div>
+
+{{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</a>
{{ end }}
+ {{ if .GlobalData.LoggedIn }}
<div>
<span>{{ .GlobalData.Username }}</span>
<a href="/settings">Settings</a>
<a href="/logout">Sign Out</a>
</div>
+ {{ end }}
</nav>
</header>