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.text.erb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/views/vote_mailer/daily_report_email.text.erb (limited to 'app/views/vote_mailer/daily_report_email.text.erb') diff --git a/app/views/vote_mailer/daily_report_email.text.erb b/app/views/vote_mailer/daily_report_email.text.erb new file mode 100644 index 0000000..22ea368 --- /dev/null +++ b/app/views/vote_mailer/daily_report_email.text.erb @@ -0,0 +1,5 @@ +Users have upvoted content on Four Island in the last day! + +<% @entries.each do |entry| %> +- <%= pluralize(entry.size, "person") %> left an upvote on <%= entry.first.votable.title %> (<%= url_for(entry.first.votable) %>) +<% end %> -- cgit 1.4.1