Use label-branch css for MR branches info

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-07-30 22:58:20 +03:00
parent f0c26bcb64
commit dab9835ae1
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
2 changed files with 10 additions and 16 deletions

View file

@ -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)

View file

@ -28,15 +28,11 @@
= link_to project_merge_requests_path(@project) do
&larr; 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}
&rarr;
%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
&rarr;
%span= @merge_request.target_branch
%strong.label-branch #{@merge_request.source_branch}
%span into
%strong.label-branch #{@merge_request.target_branch}