Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-02-20 03:20:05 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-02-20 20:50:13 +0300
commit3cadffdd8ed0be3407b6a8fc2f759720eda73f47 (patch)
treecfa0a88758f403f567d9c66ddb414bdd5c4a8e31 /app/views
parentd3c6f9c45bd9359a98e6ab307a66c362ce23a21d (diff)
Allow users to compare branches on a read-only instance
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/branches/_branch.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index c64ad1c8147..91c51d5e091 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -53,9 +53,8 @@
= _('Merge request')
- if branch.name != @repository.root_ref
- = link_to project_compare_index_path(@project, from: @repository.root_ref, to: branch.name),
+ = link_to project_compare_path(@project, @repository.root_ref, branch.name),
class: "btn btn-default #{'prepend-left-10' unless merge_project}",
- method: :post,
title: s_('Branches|Compare') do
= s_('Branches|Compare')