summaryrefslogtreecommitdiff
path: root/app/views/notify/note_commit_email.html.haml
diff options
context:
space:
mode:
authorhhoopes <heidih@gmail.com>2016-08-22 23:36:30 -0600
committerSean McGivern <sean@gitlab.com>2016-11-25 15:23:49 +0000
commit24070bac45134c915c13d3e94723a44f59ab4e3a (patch)
tree59ba105e715d8a2f65547ca1f03e9ba231b48ff4 /app/views/notify/note_commit_email.html.haml
parent38ed96e9b1a47dca5aa2590fa9b0ade908337435 (diff)
downloadgitlab-ce-24070bac45134c915c13d3e94723a44f59ab4e3a.tar.gz
Add new template to handle both commit & mr notes
Currently comments on commits and merge requests do not require merge request- or commit-specific information, but can use the same template. Rather than change the method which calls the template, I opted to keep the templates separate and create a new template to highlight their identicality, while preserving the option to distinguish them from each other in the future. Also removed some of the inconsistencies between text and html email versions. Still needed is a text-only version of git diffs and testing.
Diffstat (limited to 'app/views/notify/note_commit_email.html.haml')
-rw-r--r--app/views/notify/note_commit_email.html.haml9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/notify/note_commit_email.html.haml b/app/views/notify/note_commit_email.html.haml
index 1d961e4424c..f4293a3aa50 100644
--- a/app/views/notify/note_commit_email.html.haml
+++ b/app/views/notify/note_commit_email.html.haml
@@ -1,2 +1,7 @@
-= render 'note_message'
-
+%p.details
+ New comment for Commit
+ = @commit.short_id
+ on
+ = render partial: 'note_mr_or_commit_email',
+ locals: { note: @note,
+ discussion: @discussion}