<%= placeholder_cell('12px', vertical: true) %>
<%= render partial: 'mailer/notification_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 %>
>
<%= digest_notification_timestamp_text(notifications_by_work_package.first) %>
<%= digest_additional_author_text(notifications_by_work_package) %>
|
<% end %>
<% end %>
<%= render layout: 'mailer/notification_settings_table' do %>
<% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %>
<% 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) %>
|
<%= placeholder_cell('10px', vertical: true) %>
|
<% end %>
<% end %>
<%= placeholder_cell('40px', vertical: false) %>
|
<%= placeholder_cell('12px', vertical: true) %>