|
<%=t 'user_notifications.digest.since_last_visit' %>
<%= @new_topics_count -%>
|
<%= @unread_messages -%>
|
<%= @unread_notifications -%>
|
<%=t 'user_notifications.digest.new_topics' %>
|
<%=t 'user_notifications.digest.unread_messages' %>
|
<%=t 'user_notifications.digest.unread_notifications' %>
|
<%=t 'user_notifications.digest.popular_topics' %>
|
<% @popular_topics.each_with_index do |t, i| %>
<%= category_badge(t.category, inline_style: true, absolute_url: true) %>
|
<%= short_date(t.created_at) %>
|
;">
|
<% if t.image_url.present? %>
|
<% end %>
|
<%= t.user.try(:username) -%>
<% if t.user.try(:name).present? %>
<%= t.user.name -%>
<% end %>
|
<%- if t.first_post.present? && !t.first_post.user_deleted %>
<%= email_excerpt(t.first_post.cooked) %>
|
<%- end %>
<%= digest_custom_html("below_post_#{i+1}") %>
<% end %>
|
|
|
<% if @popular_posts.present? %>
|
<% @popular_posts.each do |post| %>
<%= email_excerpt(post.cooked) %>
|
<% end %>
<% end %>
<% if @other_new_for_you.present? %>
<%=t 'user_notifications.digest.more_new' %>
<%= digest_custom_html("above_popular_topics") %>
<% @other_new_for_you.each do |t| %>
<%= t.user_data ? (t.highest_post_number - t.user_data.last_read_post_number) : t.highest_post_number %>
|
<%= t.title -%>
<%= t.category.try(:name) -%>
|
<% t.posters_summary[0,2].each do |ps| %>
<% if ps.user %>
<% end %>
<% end %>
|
<%= t.like_count -%>
|
<%= t.posts_count - 1 -%>
|
|
<% end %>
<%= digest_custom_html("below_popular_topics") %>
<% end %>
|
|
<%= digest_custom_html("above_footer") %>
<%= digest_custom_html("below_footer") %>