diff options
author | hhoopes <heidih@gmail.com> | 2016-08-22 23:36:30 -0600 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-11-25 15:23:49 +0000 |
commit | 24070bac45134c915c13d3e94723a44f59ab4e3a (patch) | |
tree | 59ba105e715d8a2f65547ca1f03e9ba231b48ff4 /app/views/notify/note_commit_email.html.haml | |
parent | 38ed96e9b1a47dca5aa2590fa9b0ade908337435 (diff) | |
download | gitlab-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.haml | 9 |
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} |