summaryrefslogtreecommitdiff
path: root/app/views/notify/_note_mr_or_commit_email.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/notify/_note_mr_or_commit_email.html.haml')
-rw-r--r--app/views/notify/_note_mr_or_commit_email.html.haml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/notify/_note_mr_or_commit_email.html.haml b/app/views/notify/_note_mr_or_commit_email.html.haml
new file mode 100644
index 00000000000..edf8dfe7e9e
--- /dev/null
+++ b/app/views/notify/_note_mr_or_commit_email.html.haml
@@ -0,0 +1,18 @@
+= content_for :head do
+ = stylesheet_link_tag 'mailers/highlighted_diff_email'
+
+New comment
+
+- if @discussion && @discussion.diff_file
+ on
+ = link_to @note.diff_file.file_path, @target_url, class: 'details'
+ \:
+ %table
+ = render partial: "projects/diffs/line",
+ collection: @discussion.truncated_diff_lines,
+ as: :line,
+ locals: { diff_file: @note.diff_file,
+ plain: true,
+ email: true }
+
+= render 'note_message'