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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add status to mail digest
Oliver Günthera1f1bf2c5037
diff --git a/app/views/digest_mailer/work_packages.html.erb b/app/views/digest_mailer/work_packages.html.erbindex e675772e160..8653f6a30c1 100644--- a/app/views/digest_mailer/work_packages.html.erb+++ b/app/views/digest_mailer/work_packages.html.erb@@ -8,7 +8,7 @@<% notifications_by_work_package.each do |work_package, notifications| %><section style="margin-bottom: 3em;">- <h2 style="margin-bottom: 1em; font-size: 1.5em;"><%= link_to_work_package work_package, only_path: false %></h2>+ <h2 style="margin-bottom: 1em; font-size: 1.5em;"><%= link_to_work_package work_package, status: true, only_path: false %></h2><% notifications.sort_by(&:created_at).each do |notification| %>diff --git a/spec/mailers/digest_mailer_spec.rb b/spec/mailers/digest_mailer_spec.rbindex d4e8384ca3b..3aa2473738c 100644--- a/spec/mailers/digest_mailer_spec.rb+++ b/spec/mailers/digest_mailer_spec.rb@@ -108,8 +108,9 @@ describe DigestMailer, type: :mailer doexpect(mail_body).to have_selector('body section h1', text: project1.name)+ expected = "#{work_package.type.name} ##{work_package.id} #{work_package.status.name}: #{work_package.subject}"expect(mail_body)- .to have_selector('body section section h2', text: work_package.to_s)+ .to have_selector('body section section h2', text: expected)expect(mail_body).to have_selector('body section section p.op-uc-p', text: journal.notes)