|
|
|
@ -36,25 +36,33 @@ |
|
|
|
|
<tr> |
|
|
|
|
<td width="80%"> |
|
|
|
|
<% if @aggregated_notifications.length > DigestMailer::MAX_SHOWN_WORK_PACKAGES %> |
|
|
|
|
<span style="font-size: 14px; line-height: 28px"> |
|
|
|
|
<% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %> |
|
|
|
|
<% if number_of_overflowing_work_packages === 1 %> |
|
|
|
|
<%= I18n.t(:'mail.digests.work_packages.more_to_see_singular') %> |
|
|
|
|
<% else %> |
|
|
|
|
<%= I18n.t(:'mail.digests.work_packages.more_to_see_plural', number: number_of_overflowing_work_packages) %> |
|
|
|
|
<% end %> |
|
|
|
|
</span> |
|
|
|
|
<a |
|
|
|
|
target="_blank" |
|
|
|
|
style="background-color: #D1E5F5; |
|
|
|
|
padding: 8px 12px; |
|
|
|
|
color: #1A67A3; |
|
|
|
|
border: 1px solid #1A67A3; |
|
|
|
|
border-radius: 16px; |
|
|
|
|
text-decoration: none; |
|
|
|
|
white-space: nowrap;"> |
|
|
|
|
<%= I18n.t(:'mail.digests.work_packages.see_all') %> |
|
|
|
|
</a> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<span style="font-size: 14px; line-height: 28px"> |
|
|
|
|
<% number_of_overflowing_work_packages = @aggregated_notifications.length - DigestMailer::MAX_SHOWN_WORK_PACKAGES %> |
|
|
|
|
<% if number_of_overflowing_work_packages === 1 %> |
|
|
|
|
<%= I18n.t(:'mail.digests.work_packages.more_to_see_singular') %> |
|
|
|
|
<% else %> |
|
|
|
|
<%= I18n.t(:'mail.digests.work_packages.more_to_see_plural', number: number_of_overflowing_work_packages) %> |
|
|
|
|
<% end %> |
|
|
|
|
</span> |
|
|
|
|
</td> |
|
|
|
|
<td> |
|
|
|
|
<a |
|
|
|
|
target="_blank" |
|
|
|
|
style="background-color: #D1E5F5; |
|
|
|
|
padding: 8px 12px; |
|
|
|
|
color: #1A67A3; |
|
|
|
|
border: 1px solid #1A67A3; |
|
|
|
|
border-radius: 16px; |
|
|
|
|
text-decoration: none; |
|
|
|
|
white-space: nowrap;"> |
|
|
|
|
<%= I18n.t(:'mail.digests.work_packages.see_all') %> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<% end %> |
|
|
|
|
</td> |
|
|
|
|
<td width="20%" style="text-align: right"> |
|
|
|
|