diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-03 21:06:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-03 21:06:11 +0300 |
commit | 25521def84a6987fe9d4265b560e930bfb32c195 (patch) | |
tree | 711e001ea65f76a9c2eb034c4531bda325af84f3 /app/views/projects/branches | |
parent | 9a1c5456747a7b5b218b8b44e4b43396bf7fd705 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/branches')
-rw-r--r-- | app/views/projects/branches/_branch.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml index dbff2115f50..3e53cb510b0 100644 --- a/app/views/projects/branches/_branch.html.haml +++ b/app/views/projects/branches/_branch.html.haml @@ -34,8 +34,9 @@ = _('Merge request') - if branch.name != @repository.root_ref - = link_to project_compare_path(@project, @repository.root_ref, branch.name), + = link_to project_compare_index_path(@project, from: @repository.root_ref, to: branch.name), class: "btn btn-default js-onboarding-compare-branches #{'prepend-left-10' unless merge_project}", + method: :post, title: s_('Branches|Compare') do = s_('Branches|Compare') |