<%- if logo_url.blank? %> <%= SiteSetting.title %> <%- else %> <%- end %>
<%= raw(t 'user_notifications.digest.why', site_link: html_site_link(@anchor_color), last_seen_at: @last_seen_at) %> <%- if @featured_topics.present? %>

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

<%- @featured_topics.each_with_index do |t, i| %> <%- if t.best_post.present? && !t.best_post.user_deleted %>
<%= 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| %> <%- end -%> <%- end -%> <%- if @new_topics_since_seen > 0 %> <%- if @new_by_category.present? %>

<%= t('user_notifications.digest.more_topics_category', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %>

<%- @new_by_category.first(10).each do |c| %> <%= c[0].name %> <%= c[1] %> <%- end %>
<%- else %>

<%= t('user_notifications.digest.more_topics', last_seen_at: @last_seen_at, new_topics_since_seen: @new_topics_since_seen) %>

<%- end %> <%- end -%>