2012-01-29 10:04:09 +00:00
|
|
|
%li.wll{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(issue.project, issue) }
|
|
|
|
.right
|
2012-03-22 20:28:02 +00:00
|
|
|
- if issue.notes.any?
|
|
|
|
%span.btn.small.disabled.padded= pluralize issue.notes.count, 'note'
|
2012-02-21 22:31:18 +00:00
|
|
|
- if can? current_user, :modify_issue, issue
|
2012-01-29 10:04:09 +00:00
|
|
|
- if issue.closed
|
2012-03-22 20:28:02 +00:00
|
|
|
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true
|
2012-01-29 10:04:09 +00:00
|
|
|
- else
|
2012-03-22 20:28:02 +00:00
|
|
|
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small padded", :remote => true
|
2012-06-03 22:37:27 +00:00
|
|
|
= link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
|
2012-05-24 06:23:25 +00:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
|
|
|
|
2012-02-11 21:22:33 +00:00
|
|
|
= image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
|
|
|
|
%span.update-author
|
|
|
|
assigned to
|
2012-02-18 12:12:48 +00:00
|
|
|
%strong= issue.assignee_name
|
2012-02-11 21:22:33 +00:00
|
|
|
- if issue.critical
|
|
|
|
%span.label.important critical
|
|
|
|
- if issue.today?
|
|
|
|
%span.label.success today
|
2012-03-14 13:31:31 +00:00
|
|
|
- if issue.upvotes > 0
|
|
|
|
%span.label.success= "+#{issue.upvotes}"
|
2012-02-11 21:22:33 +00:00
|
|
|
|
2012-01-29 10:04:09 +00:00
|
|
|
= link_to project_issue_path(issue.project, issue) do
|
2012-03-03 11:03:03 +00:00
|
|
|
%p.row_title= truncate(issue.title, :length => 100)
|