<%- if logo_url.blank? %> <%= SiteSetting.title %> <%- else %> <%= SiteSetting.title %> <%- end %>
<%= I18n.t("user_notifications.chat_summary.description", count: @count) %>
<%- [@grouped_channels, @grouped_dms].each do |grouped_messages| %> <%- grouped_messages.each do |channel, messages| %> <%- other_messages_count = messages.size - 2 %> <%- unless SiteSetting.private_email %> <%- messages.take(2).each do |chat_message| %> <%- sender = chat_message.user %> <%- end %> <%- end %>
<%- if SiteSetting.private_email %> <%= I18n.t("system_messages.private_channel_title", id: channel.id) %> <%- else %> <%= channel.title(@user) %> <%- end %>
<%= sender.display_name -%> <%= sender.display_name -%> <%= I18n.l(@user_tz.to_local(chat_message.created_at), format: :long) -%>
<%= email_excerpt(chat_message.cooked_for_excerpt) %>
<%- if SiteSetting.private_email || other_messages_count <= 0 %> <%= I18n.t("user_notifications.chat_summary.view_messages", count: messages.size) %> <%- else %> <%= I18n.t("user_notifications.chat_summary.view_more", count: other_messages_count) %> <%- end %>
<%- end %> <%- end %>