2022-04-05 05:09:24 -04:00
|
|
|
- if @include_diff_discussion_stylesheet
|
|
|
|
= content_for :head do
|
|
|
|
= stylesheet_link_tag 'mailers/highlighted_diff_email'
|
2022-03-29 11:09:53 -04:00
|
|
|
|
2021-04-05 08:09:17 -04:00
|
|
|
%table{ border: "0", cellpadding: "0", cellspacing: "0", style: "width:100%;margin:0 auto;border-collapse:separate;border-spacing:0;" }
|
2020-05-27 14:08:14 -04:00
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%td{ style: "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;background-color:#ffffff;text-align:left;overflow:hidden;" }
|
|
|
|
%table{ border: "0", cellpadding: "0", cellspacing: "0", style: "width:100%;border-collapse:separate;border-spacing:0;" }
|
|
|
|
%tbody
|
|
|
|
%tr
|
2022-04-13 17:09:57 -04:00
|
|
|
%td{ style: "color:#333333;border-bottom:1px solid #ededed;font-weight:bold;line-height:1.4;padding: 20px 0;" }
|
2020-05-27 14:08:14 -04:00
|
|
|
- mr_link = link_to(@merge_request.to_reference(@project), project_merge_request_url(@project, @merge_request))
|
|
|
|
- mr_author_link = link_to(@author_name, user_url(@author))
|
|
|
|
= _('Merge request %{mr_link} was reviewed by %{mr_author}').html_safe % { mr_link: mr_link, mr_author: mr_author_link }
|
|
|
|
%tr
|
2022-04-13 17:09:57 -04:00
|
|
|
%td{ style: "overflow:hidden;line-height:1.4;display:grid;" }
|
2020-05-27 14:08:14 -04:00
|
|
|
- @notes.each do |note|
|
2022-04-05 05:09:24 -04:00
|
|
|
-# Get preloaded note discussion
|
|
|
|
- discussion = @discussions[note.discussion_id] if note.part_of_discussion?
|
|
|
|
-# Preload project for discussions first note
|
|
|
|
- discussion.first_note.project = @project if discussion&.first_note
|
2020-05-27 14:08:14 -04:00
|
|
|
- target_url = project_merge_request_url(@project, @merge_request, anchor: "note_#{note.id}")
|
2022-04-13 17:09:57 -04:00
|
|
|
= render 'note_email', note: note, diff_limit: 3, target_url: target_url, note_style: "border-bottom:1px solid #ededed; padding-bottom: 1em;", include_stylesheet_link: false, discussion: discussion, author: @author
|