summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
Diffstat (limited to 'web/template')
-rw-r--r--web/template/authorize.tmpl8
-rw-r--r--web/template/error.tmpl8
2 files changed, 15 insertions, 1 deletions
diff --git a/web/template/authorize.tmpl b/web/template/authorize.tmpl
index b6eef9561..68a6a2f29 100644
--- a/web/template/authorize.tmpl
+++ b/web/template/authorize.tmpl
@@ -2,7 +2,13 @@
<main>
<form action="/oauth/authorize" method="POST">
<h1>Hi {{.user}}!</h1>
- <p>Application <b>{{.appname}}</b> {{if len .appwebsite | eq 0 | not}}({{.appwebsite}}) {{end}}would like to perform actions on your behalf, with scope <em>{{.scope}}</em>.</p>
+ <p>
+ Application <b>{{.appname}}</b>
+ {{if len .appwebsite | eq 0 | not}}
+ ({{.appwebsite}})
+ {{end}}
+ would like to perform actions on your behalf, with scope <em>{{.scope}}</em>.
+ </p>
<p>The application will redirect to {{.redirect}} to continue.</p>
<p>
<button
diff --git a/web/template/error.tmpl b/web/template/error.tmpl
new file mode 100644
index 000000000..a8a72b062
--- /dev/null
+++ b/web/template/error.tmpl
@@ -0,0 +1,8 @@
+{{ template "header.tmpl" .}}
+ <main>
+ <section class="error">
+ <span>❌</span> <pre>{{.error}}</pre>
+ </section>
+
+ </main>
+{{ template "footer.tmpl" .}} \ No newline at end of file