mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 20:45:04 +01:00
6e50134a42
* Add trending links * Add overriding specific links trendability * Add link type to preview cards and only trend articles Change trends review notifications from being sent every 5 minutes to being sent every 2 hours Change threshold from 5 unique accounts to 15 unique accounts * Fix tests
17 lines
819 B
Plaintext
17 lines
819 B
Plaintext
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
|
|
|
|
<%= raw t('admin_mailer.new_trending_links.body') %>
|
|
|
|
<% @links.each do |link| %>
|
|
- <%= link.title %> • <%= link.url %>
|
|
<%= 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)) %>
|
|
<% end %>
|
|
|
|
<% if @lowest_trending_link %>
|
|
<%= t('admin_mailer.new_trending_links.requirements', lowest_link_title: @lowest_trending_link.title, lowest_link_score: Trends.links.score(@lowest_trending_link.id).round(2)) %>
|
|
<% else %>
|
|
<%= t('admin_mailer.new_trending_links.no_approved_links') %>
|
|
<% end %>
|
|
|
|
<%= raw t('application_mailer.view')%> <%= admin_trends_links_url %>
|