-
- Downloads
Merge branch 'hoopes/gitlab-ce-21027-add-diff-hunks-to-notification-emails' into 'master'
Add diff hunks to notification emails Add diff hunks to notification emails. Continued from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5855 - thanks @hoopes! This also fixes an issue where the + / - prefixes were missing from diffs in emails. Screenshots (from my browser) of the HTML emails, along with text screenshots ``` New comment for Merge Request !1 on app/views/admin/builds/index.html.haml: http://localhost:3000/gitlab-org/gitlab-ce/merge_requests/1#note_1023 > Finished This is a comment at the top of a match section. ```  ``` New comment for Merge Request !1 on app/views/admin/builds/index.html.haml: http://localhost:3000/gitlab-org/gitlab-ce/merge_requests/1#note_1022 > Finished > %span.badge.js-running-count= @all_builds.finished.count(:id) > > - %li{class: ('active' if @scope == 'all')} > - = link_to admin_builds_path(scope: :all) do > - All > - %span.badge.js-totalbuilds-count= @all_builds.count(:id) > - > .gray-content-block > #{(@scope || 'running').capitalize} builds > This is a comment at the bottom of a match section. ```  ``` New comment for Merge Request !1 on app/views/admin/builds/index.html.haml: http://localhost:3000/gitlab-org/gitlab-ce/merge_requests/1#note_1024 > = link_to 'Cancel all', cancel_all_admin_builds_path, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post > > %ul.center-top-menu > - %li{class: ('active' if @scope.nil?)} > + %li{class: ('active' if @scope == 'all')} > = link_to admin_builds_path do > + All This is a comment with some deleted and added lines above it. ``` Closes #21027, closes #24340. See merge request !7660
No related branches found
No related tags found
Showing
- app/assets/stylesheets/mailers/highlighted_diff_email.scss 0 additions, 0 deletionsapp/assets/stylesheets/mailers/highlighted_diff_email.scss
- app/mailers/emails/notes.rb 2 additions, 0 deletionsapp/mailers/emails/notes.rb
- app/models/discussion.rb 9 additions, 3 deletionsapp/models/discussion.rb
- app/views/notify/_note_message.text.erb 5 additions, 0 deletionsapp/views/notify/_note_message.text.erb
- app/views/notify/_note_mr_or_commit_email.html.haml 18 additions, 0 deletionsapp/views/notify/_note_mr_or_commit_email.html.haml
- app/views/notify/_note_mr_or_commit_email.text.erb 8 additions, 0 deletionsapp/views/notify/_note_mr_or_commit_email.text.erb
- app/views/notify/_simple_diff.text.erb 3 additions, 0 deletionsapp/views/notify/_simple_diff.text.erb
- app/views/notify/note_commit_email.html.haml 2 additions, 2 deletionsapp/views/notify/note_commit_email.html.haml
- app/views/notify/note_commit_email.text.erb 2 additions, 9 deletionsapp/views/notify/note_commit_email.text.erb
- app/views/notify/note_merge_request_email.html.haml 2 additions, 7 deletionsapp/views/notify/note_merge_request_email.html.haml
- app/views/notify/note_merge_request_email.text.erb 2 additions, 9 deletionsapp/views/notify/note_merge_request_email.text.erb
- app/views/notify/repository_push_email.html.haml 1 addition, 1 deletionapp/views/notify/repository_push_email.html.haml
- app/views/projects/diffs/_line.html.haml 1 addition, 1 deletionapp/views/projects/diffs/_line.html.haml
- changelogs/unreleased/hoopes-gitlab-ce-21027-add-diff-hunks-to-notification-emails.yml 4 additions, 0 deletions...gitlab-ce-21027-add-diff-hunks-to-notification-emails.yml
- spec/mailers/notify_spec.rb 76 additions, 3 deletionsspec/mailers/notify_spec.rb
- spec/models/discussion_spec.rb 19 additions, 0 deletionsspec/models/discussion_spec.rb
File moved
app/views/notify/_note_message.text.erb
0 → 100644
app/views/notify/_simple_diff.text.erb
0 → 100644
Please register or sign in to comment