From 9681897e9ace534c4559fa9be20aa86af1a42e13 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 10:33:07 -0500 Subject: Add daily upvote email like AO3 kudos --- app/views/vote_mailer/daily_report_email.html.haml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/views/vote_mailer/daily_report_email.html.haml (limited to 'app/views/vote_mailer/daily_report_email.html.haml') diff --git a/app/views/vote_mailer/daily_report_email.html.haml b/app/views/vote_mailer/daily_report_email.html.haml new file mode 100644 index 0000000..ab54df2 --- /dev/null +++ b/app/views/vote_mailer/daily_report_email.html.haml @@ -0,0 +1,8 @@ +%p + Users have upvoted content on Four Island in the last day! +%ul + - @entries.each do |entry| + %li + %strong= pluralize(entry.size, "person") + left an upvote on + = link_to entry.first.votable.title, entry.first.votable, style: "font-weight: bold; font-style: italic" -- cgit 1.4.1