Skip to content
This repository has been archived by the owner on Jul 26, 2018. It is now read-only.

Commit

Permalink
Update merge request presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
riyad committed Aug 9, 2012
1 parent ea34f43 commit f2fffcb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
13 changes: 12 additions & 1 deletion app/assets/stylesheets/sections/merge_requests.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@
}

/**
* MR -> show: Automerge widget
* MR -> show
*
*/
.main_box .merge-branches {
line-height: 36px;
margin: 15px;
}
.automerge_widget {
&.can_be_merged {
background: #DFF0D8;
Expand Down Expand Up @@ -98,4 +102,11 @@ li.merge_request {
padding: 0px;
padding-bottom: 2px;
}
.notes-count {
margin-top: 4px;
}
.merge-branches {
display: inline-block;
line-height: 36px;
}
}
8 changes: 4 additions & 4 deletions app/views/merge_requests/_merge_request.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
%i.icon-ok
= "MERGED"
- if merge_request.notes.any?
%span.btn.small.disabled.grouped
.notes-count.btn.small.disabled.grouped
%i.icon-comment
= merge_request.notes.count
%span.btn.small.disabled.grouped
= merge_request.source_branch
.merge-branches
%span.pretty_label.branch= merge_request.source_branch
→
= merge_request.target_branch
%span.pretty_label.branch= merge_request.target_branch
%strong.gfm-id !#{merge_request.id}

%p= link_to_gfm truncate(merge_request.title, :length => 80), project_merge_request_path(merge_request.project, merge_request), :class => "row_title"
Expand Down
4 changes: 4 additions & 0 deletions app/views/merge_requests/show/_mr_box.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.main_box
.merge-branches.right
%span.pretty_label.branch= @merge_request.source_branch
→
%span.pretty_label.branch= @merge_request.target_branch
.top_box_content
%h4
- if @merge_request.closed
Expand Down
4 changes: 0 additions & 4 deletions app/views/merge_requests/show/_mr_title.html.haml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
%h3.page_title
Merge Request
%strong.gfm-id !#{@merge_request.id}
 
%span.pretty_label.branch= @merge_request.source_branch
→
%span.pretty_label.branch= @merge_request.target_branch

%span.right
- if @merge_request.merged?
Expand Down

0 comments on commit f2fffcb

Please sign in to comment.