debian-mirror-gitlab/app/views/notify/push_to_merge_request_email.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.2 KiB
Text
Raw Normal View History

2018-05-09 12:01:36 +05:30
%h3
2019-02-15 15:39:39 +05:30
= sanitize_name(@updated_by_user.name)
2018-05-09 12:01:36 +05:30
pushed new commits to merge request
2020-07-28 23:09:34 +05:30
= merge_request_reference_link(@merge_request)
2018-05-09 12:01:36 +05:30
2022-06-21 17:19:12 +05:30
- if @total_existing_commits_count > 0
2018-05-09 12:01:36 +05:30
%ul
%li
2022-06-21 17:19:12 +05:30
- if @total_existing_commits_count == 1
2018-05-09 12:01:36 +05:30
- commit_id = @existing_commits.first[:short_id]
= link_to(commit_id, project_commit_url(@merge_request.target_project, commit_id))
- else
= link_to(project_compare_url(@merge_request.target_project, from: @existing_commits.first[:short_id], to: @existing_commits.last[:short_id])) do
#{@existing_commits.first[:short_id]}...#{@existing_commits.last[:short_id]}
= precede ' - ' do
2022-06-21 17:19:12 +05:30
- commits_text = "#{@total_existing_commits_count} commit".pluralize(@total_existing_commits_count)
2018-05-09 12:01:36 +05:30
#{commits_text} from branch `#{@merge_request.target_branch}`
2022-06-21 17:19:12 +05:30
- if @total_new_commits_count > 0
2018-05-09 12:01:36 +05:30
%ul
- @new_commits.each do |commit|
%li
= link_to(commit[:short_id], project_commit_url(@merge_request.target_project, commit[:short_id]))
= precede ' - ' do
#{commit[:title]}
2022-06-21 17:19:12 +05:30
- if @total_stripped_new_commits_count > 0
%li And #{@total_stripped_new_commits_count} more