From df4c603dea022146476812cbbc2b9f8f1e5e4870 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 5 May 2020 20:22:22 +0200 Subject: Switch emails to pug templates and provide richer html/text-only versions --- server/lib/emails/video-abuse-new/html.pug | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 server/lib/emails/video-abuse-new/html.pug (limited to 'server/lib/emails/video-abuse-new/html.pug') diff --git a/server/lib/emails/video-abuse-new/html.pug b/server/lib/emails/video-abuse-new/html.pug new file mode 100644 index 000000000..999c89d26 --- /dev/null +++ b/server/lib/emails/video-abuse-new/html.pug @@ -0,0 +1,18 @@ +extends ../common/greetings +include ../common/mixins.pug + +block title + | A video is pending moderation + +block content + p + | #[a(href=WEBSERVER.URL) #{WEBSERVER.HOST}] received an abuse report for the #{videoAbuse.video.channel.isLocal ? '' : 'remote '}video " + a(href=videoUrl) #{videoAbuse.video.name} + | " by #[+channel(videoAbuse.video.channel)] + if videoPublishedAt + | , published the #{videoPublishedAt}. + else + | , uploaded the #{videoCreatedAt} but not yet published. + p The reporter, #{reporter}, cited the following reason(s): + blockquote #{videoAbuse.reason} + br(style="display: none;") -- cgit v1.2.3