summaryrefslogtreecommitdiff
path: root/views/profile.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-16 16:26:27 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-19 11:48:10 +0200
commitfb9fa1b6365c1c13e00c35257e53eebf610f0c6c (patch)
tree930f61cfee6993158b176eed036bb0ecbf35de88 /views/profile.ejs
parent4fb5d7ac18b8121044ed1b01dc6000161985b089 (diff)
downloadserver-fb9fa1b6365c1c13e00c35257e53eebf610f0c6c.tar.gz
Add mail notifications.
Diffstat (limited to 'views/profile.ejs')
-rw-r--r--views/profile.ejs9
1 files changed, 9 insertions, 0 deletions
diff --git a/views/profile.ejs b/views/profile.ejs
index 0b3f20f..02f6e72 100644
--- a/views/profile.ejs
+++ b/views/profile.ejs
@@ -13,6 +13,15 @@ Your mail address is <%= user.mail %>.
<br clear=left>
<p>
+<%
+ if (user.notifications) {
+ %><a href="/unsubscribe">Disable mail notifications</a><%
+ } else {
+ %><a href="/subscribe">Enable mail notifications</a><%
+ }
+%>
+
+<p>
<a href="/change_password">Change password</a>
<p>