gitlab-org--gitlab-foss/app/views/notify/_note_email.html.haml

38 lines
1.1 KiB
Text
Raw Normal View History

2017-03-31 17:52:38 -04:00
- discussion = @note.discussion if @note.part_of_discussion?
2017-03-30 23:06:09 -04:00
- if discussion
%p.details
= succeed ':' do
= link_to @note.author_name, user_url(@note.author)
2017-03-30 23:06:09 -04:00
- if discussion.diff_discussion?
- if discussion.new_discussion?
started a new discussion
- else
commented on a discussion
2017-03-30 23:06:09 -04:00
on #{link_to discussion.file_path, @target_url}
- else
2017-03-30 23:06:09 -04:00
- if discussion.new_discussion?
started a new discussion
- else
commented on a #{link_to 'discussion', @target_url}
- elsif current_application_settings.email_author_in_body
%p.details
#{link_to @note.author_name, user_url(@note.author)} commented:
2017-03-30 23:06:09 -04:00
- if discussion&.diff_discussion?
= content_for :head do
= stylesheet_link_tag 'mailers/highlighted_diff_email'
%table
= render partial: "projects/diffs/line",
2017-03-30 23:06:09 -04:00
collection: discussion.truncated_diff_lines,
as: :line,
2017-03-30 23:06:09 -04:00
locals: { diff_file: discussion.diff_file,
plain: true,
email: true }
%div
= markdown(@note.note, pipeline: :email, author: @note.author)