From 222dbaf5c23b41eabb75a83784bd4d110e981547 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 16:11:31 -0500 Subject: Daily upvote email now includes details about webmention likes --- app/views/vote_mailer/daily_report_email.html.haml | 4 ++-- app/views/vote_mailer/daily_report_email.text.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/vote_mailer/daily_report_email.html.haml b/app/views/vote_mailer/daily_report_email.html.haml index ab54df2..33458f1 100644 --- a/app/views/vote_mailer/daily_report_email.html.haml +++ b/app/views/vote_mailer/daily_report_email.html.haml @@ -3,6 +3,6 @@ %ul - @entries.each do |entry| %li - %strong= pluralize(entry.size, "person") - left an upvote on + = voters_list(entry, html: true) + upvoted = link_to entry.first.votable.title, entry.first.votable, style: "font-weight: bold; font-style: italic" diff --git a/app/views/vote_mailer/daily_report_email.text.erb b/app/views/vote_mailer/daily_report_email.text.erb index 22ea368..5fc0b31 100644 --- a/app/views/vote_mailer/daily_report_email.text.erb +++ b/app/views/vote_mailer/daily_report_email.text.erb @@ -1,5 +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) %>) +- <%= voters_list(entry) %> upvoted <%= entry.first.votable.title %> (<%= url_for(entry.first.votable) %>) <% end %> -- cgit 1.4.1