Commit 283bf806766c02c8c66230f4c765070b0ed812fb

Authored by randx
1 parent 666cdb22

Comment icons for Issues, MR lists

app/views/issues/_show.html.haml
@@ -3,7 +3,9 @@ @@ -3,7 +3,9 @@
3 .icon 3 .icon
4 .right 4 .right
5 - if issue.notes.any? 5 - if issue.notes.any?
6 - %span.btn.small.disabled.padded= pluralize issue.notes.count, 'note' 6 + %span.btn.small.disabled.padded
  7 + %i.icon-comment
  8 + = issue.notes.count
7 - if can? current_user, :modify_issue, issue 9 - if can? current_user, :modify_issue, issue
8 - if issue.closed 10 - if issue.closed
9 = link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true 11 = link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true
app/views/merge_requests/_merge_request.html.haml
@@ -7,7 +7,9 @@ @@ -7,7 +7,9 @@
7 %i.icon-ok 7 %i.icon-ok
8 = "MERGED" 8 = "MERGED"
9 - if merge_request.notes.any? 9 - if merge_request.notes.any?
10 - %span.btn.small.disabled.padded= pluralize merge_request.notes.count, 'note' 10 + %span.btn.small.disabled.padded
  11 + %i.icon-comment
  12 + = merge_request.notes.count
11 %span.btn.small.disabled.padded 13 %span.btn.small.disabled.padded
12 = merge_request.source_branch 14 = merge_request.source_branch
13 → 15 →