<%- if logo_url.blank? %> <%= SiteSetting.title %> <%- else %> <%= SiteSetting.title %> <%- end %>
<%= I18n.t("user_notifications.chat_summary.description", count: @messages.size) %>
<%- @grouped_messages.each do |chat_channel, messages| %> <%- other_messages_count = messages.size - 2 %> <%- unless SiteSetting.private_email %> <%- messages.take(2).each do |chat_message| %> <%- sender = chat_message.user %> <%- sender_name = @display_usernames ? sender.username : sender.name %> <%- end %> <%- end %>
<%- if SiteSetting.private_email %> <%= I18n.t("system_messages.private_channel_title", id: chat_channel.id) %> <%- else %> <%= chat_channel.title(@user) %> <%- end %>
<%= sender_name -%> <%= sender_name -%> <%= I18n.l(@user_tz.to_local(chat_message.created_at), format: :long) -%>
<%= email_excerpt(chat_message.cooked_for_excerpt) %>
<%- if SiteSetting.private_email %> <%= I18n.t("user_notifications.chat_summary.view_messages", count: messages.size)%> <%- else %> <%- if 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 %>