kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
3.9 KiB
94 lines
3.9 KiB
<table <%= placeholder_table_styles %>>
|
|
<tr>
|
|
<%= placeholder_cell('20px', vertical: false) %>
|
|
</tr>
|
|
</table>
|
|
|
|
<table <%= placeholder_table_styles(width:'100%',style: 'width:100%;max-width:700px;') %>>
|
|
<tr>
|
|
<%= placeholder_cell('12px', vertical: true) %>
|
|
<td>
|
|
<%= render layout: 'mailer/notification_mailer_header',
|
|
locals: {
|
|
summary: "#{I18n.t(:'mail.digests.you_have')} #{digest_summary_text(@notification_ids.length, @mentioned_count)}"
|
|
} do %>
|
|
<a href="<%= notifications_center_url %>"
|
|
target="_blank"
|
|
style="background: #D1E5F5; padding: 8px 12px; color: #1A67A3; border: 1px solid #1A67A3; border-radius: 16px; text-decoration: none;font-size: 14px;">
|
|
<%= I18n.t(:'mail.notification.center') %>
|
|
</a>
|
|
<% end %>
|
|
|
|
<% @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
|
|
} do %>
|
|
<table <%= placeholder_table_styles %>>
|
|
<tr>
|
|
<td style="color: #878787; line-height: 24px; font-size: 14px; white-space: normal;">
|
|
<%= digest_notification_timestamp_text(notifications_by_work_package.first) %>
|
|
<%= digest_additional_author_text(notifications_by_work_package) %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<table <%= placeholder_table_styles(style: 'font-size:14px;') %>>
|
|
<tr>
|
|
<td>
|
|
<table <%= placeholder_table_styles(width:'100%',style: 'width:100%;') %>>
|
|
<tr>
|
|
<td>
|
|
<% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<span style="font-size:14px;">
|
|
<% 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) %>
|
|
</span>
|
|
</td>
|
|
<%= placeholder_cell('10px', vertical: true) %>
|
|
<td>
|
|
<a href="<%= notifications_center_url %>"
|
|
target="_blank"
|
|
style="background-color: #D1E5F5;
|
|
padding: 8px 12px;
|
|
color: #1A67A3;
|
|
border: 1px solid #1A67A3;
|
|
border-radius: 16px;
|
|
text-decoration: none;
|
|
font-size:14px;
|
|
white-space: nowrap;">
|
|
<%= I18n.t(:'mail.work_packages.see_all') %>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<%= placeholder_cell('10px', vertical: true) %>
|
|
<td>
|
|
<%= render partial: 'mailer/notification_settings_button' %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<tr>
|
|
<%= placeholder_cell('40px', vertical: false) %>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<%= placeholder_cell('12px', vertical: true) %>
|
|
</tr>
|
|
</table>
|
|
|