2017-07-25 07:56:09 -04:00
|
|
|
%h3
|
2019-01-15 09:22:26 -05:00
|
|
|
= sanitize_name(@updated_by_user.name)
|
2018-04-03 07:51:09 -04:00
|
|
|
pushed new commits to merge request
|
2020-07-03 05:08:53 -04:00
|
|
|
= merge_request_reference_link(@merge_request)
|
2017-07-25 07:56:09 -04:00
|
|
|
|
|
|
|
- if @existing_commits.any?
|
|
|
|
- count = @existing_commits.size
|
|
|
|
%ul
|
|
|
|
%li
|
2018-04-08 01:37:32 -04:00
|
|
|
- if count == 1
|
2017-07-25 07:56:09 -04:00
|
|
|
- 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
|
|
|
|
- commits_text = "#{count} commit".pluralize(count)
|
|
|
|
#{commits_text} from branch `#{@merge_request.target_branch}`
|
|
|
|
|
|
|
|
- if @new_commits.any?
|
|
|
|
%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]}
|