Commit 0321a3c9b404b4c1a68a92a5a2bdc4d07ed7a527
1 parent
89d3366e
Exists in
master
and in
4 other branches
MR: merged badge. Removed colors from MR list
Showing
10 changed files
with
28 additions
and
25 deletions
Show diff stats
app/assets/stylesheets/common.scss
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/nav.scss
| ... | ... | @@ -8,7 +8,7 @@ nav.main_menu { |
| 8 | 8 | margin:30px 0; |
| 9 | 9 | background:#eee; |
| 10 | 10 | border:1px solid #bbb; |
| 11 | - height:38px; | |
| 11 | + height:36px; | |
| 12 | 12 | background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf)); |
| 13 | 13 | background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf); |
| 14 | 14 | background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf); |
| ... | ... | @@ -55,7 +55,7 @@ nav.main_menu { |
| 55 | 55 | border-bottom-left-radius: 4px; |
| 56 | 56 | border-left: 0; |
| 57 | 57 | } |
| 58 | - padding: 10px 25px; | |
| 58 | + padding: 9px 25px; | |
| 59 | 59 | display: inline-block; |
| 60 | 60 | color: $style_color; |
| 61 | 61 | position: relative; | ... | ... |
app/helpers/merge_requests_helper.rb
app/views/issues/_show.html.haml
app/views/issues/index.html.haml
| ... | ... | @@ -17,16 +17,16 @@ |
| 17 | 17 | |
| 18 | 18 | .issues_legend |
| 19 | 19 | .list_legend |
| 20 | + .icon.today | |
| 21 | + .text Today | |
| 22 | + | |
| 23 | + .list_legend | |
| 20 | 24 | .icon.critical |
| 21 | 25 | .text Critical |
| 22 | 26 | |
| 23 | 27 | .list_legend |
| 24 | 28 | .icon.closed |
| 25 | 29 | .text Closed |
| 26 | - | |
| 27 | - .list_legend | |
| 28 | - .icon.today | |
| 29 | - .text Today | |
| 30 | 30 | .clearfix |
| 31 | 31 | |
| 32 | 32 | %div#issues-table-holder.ui-box | ... | ... |
app/views/issues/show.html.haml
| 1 | 1 | %h3 |
| 2 | 2 | Issue ##{@issue.id} |
| 3 | + | |
| 3 | 4 | %small |
| 4 | 5 | created at |
| 5 | 6 | = @issue.created_at.stamp("Aug 21, 2011") |
| ... | ... | @@ -48,6 +49,11 @@ |
| 48 | 49 | %strong |
| 49 | 50 | = truncate(milestone.title, :length => 20) |
| 50 | 51 | |
| 52 | + .right | |
| 53 | + - if @issue.critical | |
| 54 | + %span.label.label-important | |
| 55 | + Critical | |
| 56 | + | |
| 51 | 57 | - if @issue.description.present? |
| 52 | 58 | .bottom_box_content |
| 53 | 59 | = preserve do | ... | ... |
app/views/merge_requests/_merge_request.html.haml
| 1 | 1 | %li.wll{ :class => mr_css_classes(merge_request) } |
| 2 | - .list_legend | |
| 3 | - .icon | |
| 4 | 2 | .right |
| 5 | 3 | .left |
| 4 | + - if merge_request.merged? | |
| 5 | + %span.btn.small.disabled.padded | |
| 6 | + %strong | |
| 7 | + %i.icon-ok | |
| 8 | + = "MERGED" | |
| 6 | 9 | - if merge_request.notes.any? |
| 7 | 10 | %span.btn.small.disabled.padded= pluralize merge_request.notes.count, 'note' |
| 8 | 11 | %span.btn.small.disabled.padded | ... | ... |
app/views/merge_requests/index.html.haml
app/views/merge_requests/show.html.haml
| ... | ... | @@ -6,6 +6,11 @@ |
| 6 | 6 | %span.pretty_label.branch= @merge_request.target_branch |
| 7 | 7 | |
| 8 | 8 | %span.right |
| 9 | + - if @merge_request.merged? | |
| 10 | + %span.btn.small.disabled.padded | |
| 11 | + %strong | |
| 12 | + %i.icon-ok | |
| 13 | + = "MERGED" | |
| 9 | 14 | - if can?(current_user, :modify_merge_request, @merge_request) |
| 10 | 15 | - if @merge_request.open? |
| 11 | 16 | = link_to 'Close', project_merge_request_path(@project, @merge_request, :merge_request => {:closed => true }, :status_only => true), :method => :put, :class => "btn small padded danger", :title => "Close merge request" | ... | ... |