<%= render partial: 'mailer/notification_mailer_header', locals: { summary: "#{I18n.t(:'mail.digests.you_have')} #{digest_summary_text(@notification_ids.length, @mentioned_count)}" } %> <% @aggregated_notifications.first(DigestMailer::MAX_SHOWN_WORK_PACKAGES).each do | work_package, notifications_by_work_package| %> <%= render layout: 'mailer/notification_row', locals: { work_package: work_package, notifications_by_work_package: notifications_by_work_package } do %> > <% notifications_by_work_package.each do | notification | %> <% if notification.journal.notes.present? %> <% end %> <% notification.journal.details.each do |detail| %> <% end %> <% end %>
<%= digest_comment_text(notification) %> <%= digest_notification_timestamp_text(notification) %>
<%= notification.journal.render_detail(detail, only_path: false) %> <%= digest_notification_timestamp_text(notification) %>
<% end %> <% end %> > <%= placeholder_cell('10px', true) %>
>
<%= placeholder_cell('10px', true) %>
<% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %> <% count = number_of_overflowing_work_packages === 1 ? 'one' : 'other' %> <%= I18n.t(:"mail.digests.work_packages.more_to_see.#{count}", count: number_of_overflowing_work_packages) %> <%= I18n.t(:'mail.digests.work_packages.see_all') %>
<%= render partial: 'mailer/notification_settings_button' %>
<%= placeholder_cell('20px') %>