Make the merge request notification emails more readable

Emphasize the meaningful informations, and remove the less needed ones:

* Use "!" to identify a merge request
* Write the name of the commented file for diff notes
* Don't show the assignee in the "merged merge request" email
parent 306744bb
%p %p
= "Merge Request #{@merge_request.iid} was closed by #{@updated_by.name}" = "Merge Request !#{@merge_request.iid} was closed by #{@updated_by.name}"
%p
!= merge_path_description(@merge_request, '→')
%p
Assignee: #{@merge_request.author_name} → #{@merge_request.assignee_name}
%p %p
= "Merge Request #{@merge_request.iid} was merged" = "Merge Request !#{@merge_request.iid} was merged"
%p
!= merge_path_description(@merge_request, '→')
%p
Assignee: #{@merge_request.author_name} → #{@merge_request.assignee_name}
%p.details - if @note.diff_file_name
- if @note.for_diff_line? %p.details
= link_to "New comment on diff", diffs_project_merge_request_url(@merge_request.target_project, @merge_request, anchor: "note_#{@note.id}") New comment on diff for
- else = link_to @note.diff_file_name, @target_url
= link_to "New comment", project_merge_request_url(@merge_request.target_project, @merge_request, anchor: "note_#{@note.id}") \:
for Merge Request ##{@merge_request.iid}
= render 'note_message' = render 'note_message'
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