You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
840 B

  1. <%= raw t('admin_mailer.new_trends.new_trending_links.title') %>
  2. <% @links.each do |link| %>
  3. - <%= link.title %> • <%= link.url %>
  4. <%= raw t('admin.trends.links.usage_comparison', today: link.history.get(Time.now.utc).accounts, yesterday: link.history.get(Time.now.utc - 1.day).accounts) %> • <%= t('admin.trends.tags.current_score', score: Trends.links.score(link.id).round(2)) %>
  5. <% end %>
  6. <% if @lowest_trending_link %>
  7. <%= raw t('admin_mailer.new_trends.new_trending_links.requirements', lowest_link_title: @lowest_trending_link.title, lowest_link_score: Trends.links.score(@lowest_trending_link.id).round(2), rank: Trends.links.options[:review_threshold]) %>
  8. <% else %>
  9. <%= raw t('admin_mailer.new_trends.new_trending_links.no_approved_links') %>
  10. <% end %>
  11. <%= raw t('application_mailer.view')%> <%= admin_trends_links_url %>