Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_review_email.html.haml « notify « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d98026f616053804d78777bd1f816fb1c3c3a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- if @include_diff_discussion_stylesheet
  = content_for :head do
    = stylesheet_link_tag 'mailers/highlighted_diff_email'

%div{ style: "color:#333333;border-bottom:8px solid #ededed;font-weight:bold;line-height:1.4;padding: 20px 0;" }
  - 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 }

- @notes.each do |note|
  -# 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
  - target_url = project_merge_request_url(@project, @merge_request, anchor: "note_#{note.id}")
  = render 'note_email', note: note, diff_limit: 3, target_url: target_url, note_style: "border-bottom:4px solid #ededed; padding-bottom: 1em;", include_stylesheet_link: false, discussion: discussion, author: @author
= render_if_exists 'notify/review_summary'