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.
- if @issue.assignees.any?
%p
Assignee: #{@issue.assignee_list}
%p
This issue is due on: #{@issue.due_date}
This issue is due on: #{@issue.due_date.to_s(:medium)}
- if @issue.description
%div
......
......@@ -936,6 +936,8 @@ describe NotificationService, :mailer do
describe '#issue_due' 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_custom_global)
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