summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-02-18 16:47:42 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-18 16:47:42 +0100
commit59b2e1078708e212f160c9164a8c623609cdaf39 (patch)
tree815980fae68d479c1ec6f4a7e091db6d61703774 /web/template
parent[chore] update gruf's libs on readme (#1520) (diff)
downloadgotosocial-59b2e1078708e212f160c9164a8c623609cdaf39.tar.xz
[bugfix] fix oob token route, update templates+css for oob and errors (#1519)
Diffstat (limited to 'web/template')
-rw-r--r--web/template/error.tmpl17
-rw-r--r--web/template/oob.tmpl13
2 files changed, 18 insertions, 12 deletions
diff --git a/web/template/error.tmpl b/web/template/error.tmpl
index 9cc21b296..ab295d00f 100644
--- a/web/template/error.tmpl
+++ b/web/template/error.tmpl
@@ -17,10 +17,15 @@
*/ -}}
{{ template "header.tmpl" .}}
- <main>
- <section class="error">
- <span>❌</span> <pre>{{.error}}</pre>
- <span>Request ID</span> <code>{{.requestID}}</code>
- </section>
- </main>
+<main>
+ <section class="error">
+ <h1>An error occured:</h1>
+ <pre>{{.error}}</pre>
+ {{if .requestID}}
+ <div>
+ <span>Request ID:</span> <code>{{.requestID}}</code>
+ </div>
+ {{end}}
+ </section>
+</main>
{{ template "footer.tmpl" .}} \ No newline at end of file
diff --git a/web/template/oob.tmpl b/web/template/oob.tmpl
index 0328df9bd..f96956f7a 100644
--- a/web/template/oob.tmpl
+++ b/web/template/oob.tmpl
@@ -17,10 +17,11 @@
*/ -}}
{{ template "header.tmpl" .}}
- <main>
- <h1>Hi {{ .user }}!</h1>
- <p>Here's your out-of-band token with scope <em>{{.scope}}</em>:</p>
- <p><code>{{ .oobToken }}</code><p>
- <p>Use it wisely!</p>
- </main>
+<main>
+ <section class="oob-token">
+ <h1>Hi {{ .user }}!</h1>
+ <p>Here's your out-of-band token with scope "<em>{{.scope}}</em>", use it wisely:</p>
+ <code>{{ .oobToken }}</code>
+ </section>
+</main>
{{ template "footer.tmpl" .}} \ No newline at end of file