Use label-branch css for MR branches info
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
f0c26bcb64
commit
dab9835ae1
2 changed files with 10 additions and 16 deletions
|
@ -2,11 +2,9 @@
|
|||
New merge request
|
||||
%p.slead
|
||||
From
|
||||
%strong.monospace
|
||||
#{@merge_request.source_project_namespace}:#{@merge_request.source_branch}
|
||||
into
|
||||
%strong.monospace
|
||||
#{@merge_request.target_project_namespace}:#{@merge_request.target_branch}
|
||||
%strong.label-branch #{@merge_request.source_project_namespace}:#{@merge_request.source_branch}
|
||||
%span into
|
||||
%strong.label-branch #{@merge_request.target_project_namespace}:#{@merge_request.target_branch}
|
||||
|
||||
%span.pull-right
|
||||
= link_to 'Change branches', new_project_merge_request_path(@project)
|
||||
|
|
|
@ -28,15 +28,11 @@
|
|||
= link_to project_merge_requests_path(@project) do
|
||||
← To merge requests
|
||||
|
||||
%span.prepend-left-20.monospace
|
||||
-if @merge_request.for_fork?
|
||||
%span
|
||||
%strong
|
||||
#{truncate(@merge_request.source_project_path, length: 25)}:
|
||||
#{@merge_request.source_branch}
|
||||
→
|
||||
%span= @merge_request.target_branch
|
||||
%span.prepend-left-20
|
||||
%span From
|
||||
- if @merge_request.for_fork?
|
||||
%strong.label-branch #{@merge_request.source_project_namespace}:#{@merge_request.source_branch}
|
||||
- else
|
||||
%span= @merge_request.source_branch
|
||||
→
|
||||
%span= @merge_request.target_branch
|
||||
%strong.label-branch #{@merge_request.source_branch}
|
||||
%span into
|
||||
%strong.label-branch #{@merge_request.target_branch}
|
||||
|
|
Loading…
Reference in a new issue