-
- 下载
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
显示
- app/assets/stylesheets/mailers/highlighted_diff_email.scss 0 个添加, 0 个删除app/assets/stylesheets/mailers/highlighted_diff_email.scss
- app/mailers/emails/notes.rb 2 个添加, 0 个删除app/mailers/emails/notes.rb
- app/models/discussion.rb 9 个添加, 3 个删除app/models/discussion.rb
- app/views/notify/_note_message.text.erb 5 个添加, 0 个删除app/views/notify/_note_message.text.erb
- app/views/notify/_note_mr_or_commit_email.html.haml 18 个添加, 0 个删除app/views/notify/_note_mr_or_commit_email.html.haml
- app/views/notify/_note_mr_or_commit_email.text.erb 8 个添加, 0 个删除app/views/notify/_note_mr_or_commit_email.text.erb
- app/views/notify/_simple_diff.text.erb 3 个添加, 0 个删除app/views/notify/_simple_diff.text.erb
- app/views/notify/note_commit_email.html.haml 2 个添加, 2 个删除app/views/notify/note_commit_email.html.haml
- app/views/notify/note_commit_email.text.erb 2 个添加, 9 个删除app/views/notify/note_commit_email.text.erb
- app/views/notify/note_merge_request_email.html.haml 2 个添加, 7 个删除app/views/notify/note_merge_request_email.html.haml
- app/views/notify/note_merge_request_email.text.erb 2 个添加, 9 个删除app/views/notify/note_merge_request_email.text.erb
- app/views/notify/repository_push_email.html.haml 1 个添加, 1 个删除app/views/notify/repository_push_email.html.haml
- app/views/projects/diffs/_line.html.haml 1 个添加, 1 个删除app/views/projects/diffs/_line.html.haml
- changelogs/unreleased/hoopes-gitlab-ce-21027-add-diff-hunks-to-notification-emails.yml 4 个添加, 0 个删除...gitlab-ce-21027-add-diff-hunks-to-notification-emails.yml
- spec/mailers/notify_spec.rb 76 个添加, 3 个删除spec/mailers/notify_spec.rb
- spec/models/discussion_spec.rb 19 个添加, 0 个删除spec/models/discussion_spec.rb
文件已移动
app/views/notify/_note_message.text.erb
0 → 100644
app/views/notify/_simple_diff.text.erb
0 → 100644
想要评论请 注册 或 登录