Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update the text based mail digest to include date alerts

Dombi Attilaf12b2f608c21
diff --git a/app/views/digest_mailer/work_packages.text.erb b/app/views/digest_mailer/work_packages.text.erb
index 4d2d3e50233..7260b50ac0e 100644
--- a/app/views/digest_mailer/work_packages.text.erb
+++ b/app/views/digest_mailer/work_packages.text.erb
@@ -9,7 +9,11 @@
<%= "=" * (('# ' + work_package.id.to_s + work_package.subject).length + 4) %>
<% unique_reasons = unique_reasons_of_notifications(notifications_by_work_package) %>
- <% unique_reasons.each_with_index do |reason, index| %><%= I18n.t(:"mail.work_packages.reason.#{reason || :unknown}", default: '-') %><%= ', ' unless unique_reasons.size-1 == index %><% end %>: <%= digest_notification_timestamp_text(notifications_by_work_package.first, html: false) %>
+ <% unique_reasons.each_with_index do |reason, index| %><%= I18n.t(:"mail.work_packages.reason.#{reason || :unknown}", default: '-') %><%= ', ' unless unique_reasons.size-1 == index %><% end %>: <% 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, html: false) %>
+ <% end %>
<%= digest_additional_author_text(notifications_by_work_package) %>
<% end %>