Commit fd4a0820 authored by Sean McGivern's avatar Sean McGivern

Make issue due email more consistent with other mailers

parent 86bf99a6
- if Gitlab::CurrentSettings.email_author_in_body %p.details
%p.details
#{link_to @issue.author_name, user_url(@issue.author)}'s issue is due soon. #{link_to @issue.author_name, user_url(@issue.author)}'s issue is due soon.
- if @issue.assignees.any? - if @issue.assignees.any?
%p %p
Assignee: #{@issue.assignee_list} Assignee: #{@issue.assignee_list}
%p %p
This issue is due on: #{@issue.due_date} This issue is due on: #{@issue.due_date.to_s(:medium)}
- if @issue.description - if @issue.description
%div %div
......
...@@ -936,6 +936,8 @@ describe NotificationService, :mailer do ...@@ -936,6 +936,8 @@ describe NotificationService, :mailer do
describe '#issue_due' do describe '#issue_due' do
before do before do
issue.update!(due_date: Date.today)
update_custom_notification(:issue_due, @u_guest_custom, resource: project) update_custom_notification(:issue_due, @u_guest_custom, resource: project)
update_custom_notification(:issue_due, @u_custom_global) update_custom_notification(:issue_due, @u_custom_global)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment