Commit 432018f84beb96a8f6eb791af59e175263ea01aa
1 parent
7901d143
Exists in
master
and in
4 other branches
Use MR#source_project_path method instead of merge_request.source_project.path_with_namespace
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
5 changed files
with
5 additions
and
5 deletions
Show diff stats
app/helpers/merge_requests_helper.rb
... | ... | @@ -36,7 +36,7 @@ module MergeRequestsHelper |
36 | 36 | |
37 | 37 | def merge_path_description(merge_request, separator) |
38 | 38 | if merge_request.for_fork? |
39 | - "Project:Branches: #{@merge_request.source_project.path_with_namespace}:#{@merge_request.source_branch} #{separator} #{@merge_request.target_project.path_with_namespace}:#{@merge_request.target_branch}" | |
39 | + "Project:Branches: #{@merge_request.source_project_path}:#{@merge_request.source_branch} #{separator} #{@merge_request.target_project.path_with_namespace}:#{@merge_request.target_branch}" | |
40 | 40 | else |
41 | 41 | "Branches: #{@merge_request.source_branch} #{separator} #{@merge_request.target_branch}" |
42 | 42 | end | ... | ... |
app/views/projects/merge_requests/_form.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | .span5 |
11 | 11 | .clearfix |
12 | 12 | .pull-left |
13 | - = f.select(:source_project_id,[[@merge_request.source_project.path_with_namespace,@merge_request.source_project.id]] , {}, {class: 'source_project chosen span3'}) | |
13 | + = f.select(:source_project_id,[[@merge_request.source_project_path,@merge_request.source_project.id]] , {}, {class: 'source_project chosen span3'}) | |
14 | 14 | .pull-left |
15 | 15 | |
16 | 16 | = f.select(:source_branch, @merge_request.source_project.repository.branch_names, { include_blank: "Select branch" }, {class: 'source_branch chosen span2'}) | ... | ... |
app/views/projects/merge_requests/_merge_request.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | %span.pull-right |
11 | 11 | - if merge_request.for_fork? |
12 | 12 | %span.light |
13 | - = "#{merge_request.source_project.path_with_namespace}" | |
13 | + = "#{merge_request.source_project_path}" | |
14 | 14 | = "#{merge_request.source_branch}" |
15 | 15 | %i.icon-angle-right.light |
16 | 16 | = "#{merge_request.target_branch}" | ... | ... |
app/views/projects/merge_requests/show/_how_to_merge.html.haml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | %strong Step 1. |
11 | 11 | Checkout target branch and get recent objects from GitLab |
12 | 12 | Assuming remote for #{@merge_request.target_project.path_with_namespace} is called #{target_remote} |
13 | - remote for #{@merge_request.source_project.path_with_namespace} is called #{source_remote} | |
13 | + remote for #{@merge_request.source_project_path} is called #{source_remote} | |
14 | 14 | %pre.dark |
15 | 15 | :preserve |
16 | 16 | git checkout #{target_remote} #{@merge_request.target_branch} | ... | ... |
app/views/projects/merge_requests/show/_mr_title.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | |
4 | 4 | -if @merge_request.for_fork? |
5 | 5 | %span.label-branch |
6 | - %span.label-project= truncate(@merge_request.source_project.path_with_namespace, length: 25) | |
6 | + %span.label-project= truncate(@merge_request.source_project_path, length: 25) | |
7 | 7 | #{@merge_request.source_branch} |
8 | 8 | → |
9 | 9 | %span.label-branch= @merge_request.target_branch | ... | ... |