Commit 283bf806 authored by randx's avatar randx

Comment icons for Issues, MR lists

parent 666cdb22
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
.icon .icon
.right .right
- if issue.notes.any? - if issue.notes.any?
%span.btn.small.disabled.padded= pluralize issue.notes.count, 'note' %span.btn.small.disabled.padded
%i.icon-comment
= issue.notes.count
- if can? current_user, :modify_issue, issue - if can? current_user, :modify_issue, issue
- if issue.closed - if issue.closed
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true = link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
%i.icon-ok %i.icon-ok
= "MERGED" = "MERGED"
- if merge_request.notes.any? - if merge_request.notes.any?
%span.btn.small.disabled.padded= pluralize merge_request.notes.count, 'note' %span.btn.small.disabled.padded
%i.icon-comment
= merge_request.notes.count
%span.btn.small.disabled.padded %span.btn.small.disabled.padded
= merge_request.source_branch = merge_request.source_branch
→ →
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment