<%- if I18n.t('user_notifications.digest.custom.html.header').present? %>
<%= raw(t 'user_notifications.digest.custom.html.header') %>
<%- else %>
<%- if logo_url.blank? %> <%= SiteSetting.title %> <%- else %> <%= SiteSetting.title %> <%- end %>
<%- end %>
 

<%=t 'user_notifications.digest.since_last_visit' %>
<%- @counts.each do |count| -%> <%- end -%> <%- @counts.each do |count| -%> <%- end -%>
<%= count[:value] -%>
<%=t count[:label_key] -%>
 
<% if @popular_posts.present? %>
  <% @popular_posts.each do |post| %>
<%= email_excerpt(post.cooked, post) %>
 
<% end %>
 
<% end %> <%= digest_custom_html("above_popular_topics") %> <% if @other_new_for_you.present? %>
<%=t 'user_notifications.digest.more_new' %>
  <% @other_new_for_you.each do |t| %> <% end %>
<%= gsub_emoji_to_unicode(t.title.truncate(100, separator: /\s/)) -%> <%- if SiteSetting.show_topic_featured_link_in_digest && t.featured_link %> <%= raw topic_featured_link_domain(t.featured_link) %> <%- end %>

<%= category_badge(t.category, inline_style: true, absolute_url: true) %>

<% t.posters_summary[0,2].each do |ps| %> <% if ps.user %> <%= ps.user.username -%> <% end %> <% end %> likes

<%= t.like_count -%>

replies

<%= t.posts_count - 1 -%>

 
 
<% end %> <%= digest_custom_html("below_popular_topics") %>   <%= digest_custom_html("above_footer") %> <%= digest_custom_html("below_footer") %>