diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-10-03 12:21:59 +0400 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-10-03 12:21:59 +0400 |
commit | 910d5cf332a1fee68f0e5d9aaca0d69c2137ea56 (patch) | |
tree | 613425ee49e7c70ebb08c60429a03a4e5919e536 /app/views/projects/merge_requests | |
parent | d97a9d493560a77883b2016b0949207d614cc40b (diff) | |
parent | 7d9cdc2d37cec34544069cf85dc7ea33137589eb (diff) |
Merge pull request #7748 from yglukhov/clickable-source-repo-in-mr
Source repo is now clickable.
Diffstat (limited to 'app/views/projects/merge_requests')
-rw-r--r-- | app/views/projects/merge_requests/show/_mr_title.html.haml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/show/_mr_title.html.haml b/app/views/projects/merge_requests/show/_mr_title.html.haml index 563a5244993..1c319b83e2b 100644 --- a/app/views/projects/merge_requests/show/_mr_title.html.haml +++ b/app/views/projects/merge_requests/show/_mr_title.html.haml @@ -31,7 +31,12 @@ %span.prepend-left-20 %span From - if @merge_request.for_fork? - %strong.label-branch #{@merge_request.source_project_namespace}:#{@merge_request.source_branch} + %strong.label-branch< + - if @merge_request.source_project + = link_to @merge_request.source_project_namespace, project_path(@merge_request.source_project) + - else + \ #{@merge_request.source_project_namespace} + \:#{@merge_request.source_branch} %span into %strong.label-branch #{@merge_request.target_project_namespace}:#{@merge_request.target_branch} - else |