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/email_confirm_html.tmpl (renamed from web/template/email_confirm.tmpl)0
-rw-r--r--web/template/email_confirm_text.tmpl9
-rw-r--r--web/template/email_reset_html.tmpl (renamed from web/template/email_reset.tmpl)0
-rw-r--r--web/template/email_reset_text.tmpl9
-rw-r--r--web/template/error.tmpl8
6 files changed, 33 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/email_confirm.tmpl b/web/template/email_confirm_html.tmpl
index 0a9907921..0a9907921 100644
--- a/web/template/email_confirm.tmpl
+++ b/web/template/email_confirm_html.tmpl
diff --git a/web/template/email_confirm_text.tmpl b/web/template/email_confirm_text.tmpl
new file mode 100644
index 000000000..8682cc49c
--- /dev/null
+++ b/web/template/email_confirm_text.tmpl
@@ -0,0 +1,9 @@
+Hello {{.Username}}!
+
+You are receiving this mail because you've requested an account on {{.InstanceURL}}.
+
+We just need to confirm that this is your email address. To confirm your email, paste the following in your browser's address bar:
+
+{{.ConfirmLink}}
+
+If you believe you've been sent this email in error, feel free to ignore it, or contact the administrator of {{.InstanceURL}}
diff --git a/web/template/email_reset.tmpl b/web/template/email_reset_html.tmpl
index 7318c6a45..7318c6a45 100644
--- a/web/template/email_reset.tmpl
+++ b/web/template/email_reset_html.tmpl
diff --git a/web/template/email_reset_text.tmpl b/web/template/email_reset_text.tmpl
new file mode 100644
index 000000000..ccac3bf75
--- /dev/null
+++ b/web/template/email_reset_text.tmpl
@@ -0,0 +1,9 @@
+Hello {{.Username}}!
+
+You are receiving this mail because a password reset has been requested for your account on {{.InstanceURL}}.
+
+To reset your password, paste the following in your browser's address bar:
+
+{{.ResetLink}}
+
+If you believe you've been sent this email in error, feel free to ignore it, or contact the administrator of {{.InstanceURL}}.
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