> <%= placeholder_cell('20px', vertical: false) %>
> <%= placeholder_cell('12px', vertical: true) %> <%= placeholder_cell('12px', vertical: true) %>
<%= render partial: 'mailer/mailer_header', locals: { summary: "#{I18n.t(:'mail.digests.you_have')} #{digest_summary_text(@notification_ids.length, @mentioned_count)}", button_href: notifications_center_url, button_text: I18n.t(:'mail.notification.center'), user: @user, } %> <% @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, unique_reasons: unique_reasons_of_notifications(notifications_by_work_package), show_count: true, count: notifications_by_work_package.length, user: @user } do %> >
<% if notifications_by_work_package.first.date_alert? %> <%= date_alerts_text(notifications_by_work_package.first) %> <% else %> <%= digest_notification_timestamp_text(notifications_by_work_package.first) %> <% end %> <%= digest_additional_author_text(notifications_by_work_package) %>
<% end %> <% end %> <%= render layout: 'mailer/notification_settings_table', locals: { button_url: my_reminders_url, button_text: I18n.t(:'mail.notification.settings') } do %> <% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %> <%= placeholder_cell('10px', vertical: 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.work_packages.more_to_see.#{count}", count: number_of_overflowing_work_packages) %> >
<%= I18n.t(:'mail.work_packages.see_all') %>
<% end %> <% end %> <%= placeholder_cell('40px', vertical: false) %>