From 594d3e48d8a887bbf48ce4cc594c1c36c9640fb1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Jul 2020 16:26:25 +0200 Subject: Add abuse messages/states notifications --- server/lib/emails/abuse-new-message/html.pug | 11 +++++++++++ server/lib/emails/abuse-state-change/html.pug | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100644 server/lib/emails/abuse-new-message/html.pug create mode 100644 server/lib/emails/abuse-state-change/html.pug (limited to 'server/lib/emails') diff --git a/server/lib/emails/abuse-new-message/html.pug b/server/lib/emails/abuse-new-message/html.pug new file mode 100644 index 000000000..a4180aba1 --- /dev/null +++ b/server/lib/emails/abuse-new-message/html.pug @@ -0,0 +1,11 @@ +extends ../common/greetings +include ../common/mixins.pug + +block title + | New abuse message + +block content + p + | A new message was created on #[a(href=WEBSERVER.URL) abuse ##{abuseId} on #{WEBSERVER.HOST}] + blockquote #{messageText} + br(style="display: none;") diff --git a/server/lib/emails/abuse-state-change/html.pug b/server/lib/emails/abuse-state-change/html.pug new file mode 100644 index 000000000..a94c8521d --- /dev/null +++ b/server/lib/emails/abuse-state-change/html.pug @@ -0,0 +1,9 @@ +extends ../common/greetings +include ../common/mixins.pug + +block title + | Abuse state changed + +block content + p + | #[a(href=abuseUrl) Your abuse ##{abuseId} on #{WEBSERVER.HOST}] has been #{isAccepted ? 'accepted' : 'rejected'} -- cgit v1.2.3