<%= raw(t 'user_notifications.digest.why', site_link: html_site_link, last_seen_at: @last_seen_at) %> <%- if @featured_topics.present? %>

<%=t 'user_notifications.digest.top_topics' %>

<%- @featured_topics.each_with_index do |t, i| %> <%= link_to t.title, "#{Discourse.base_url}#{t.relative_url}" %> <%- if t.best_post.present? %>
<%= email_excerpt(t.best_post.cooked, @featured_topics.size) %>
<%- end %> <%- if i < @featured_topics.size - 1 %>
<% end %> <%- end %> <%- end %> <%- if @new_topics.present? %>

<%=t 'user_notifications.digest.other_new_topics' %>

<%- @new_topics.each do |t| %>
  • <%= link_to t.title, "#{Discourse.base_url}#{t.relative_url}" %> <%= t('user_notifications.digest.posts', count: t.posts_count) %> <%- if t.category && !t.category.uncategorized? %><%= t.category.name %><%- end %>
<%- end -%> <%- end -%> <%=raw(t :'user_notifications.digest.unsubscribe', site_link: html_site_link, unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_path(host: Discourse.base_url, key: @user.temporary_key, only_path: false))) %>