otwarchive-symphonyarchive/app/views/admin_mailer/send_spam_alert.html.erb
2026-03-11 22:22:11 +00:00

20 lines
541 B
Text

<% content_for :message do %>
<p>The following accounts have a suspicious level of traffic:</p>
<% @users.each do |user| %>
<% info = @spam[user.id] %>
User <%= style_link(user.login, user_works_url(user)) %> has a score of
<%= info["score"] %>
<ul>
<% Work.where(id: info["work_ids"]).each do |work| %>
<li>
<%= style_link(work.title, work_url(work)) %>
<% if work.spam? %>
(<%= ts('Flagged as spam') %>)
<% end %>
</li>
<% end %>
</ul>
<% end %>
<% end %>