2012-06-21 07:29:53 +02:00
|
|
|
%li.wll{ :id => dom_id(issue), :class => issue_css_classes(issue), :url => project_issue_path(issue.project, issue) }
|
|
|
|
.list_legend
|
|
|
|
.icon
|
2012-01-29 11:04:09 +01:00
|
|
|
.right
|
2012-06-27 20:20:35 +02:00
|
|
|
- issue.labels.each do |label|
|
2012-07-05 08:35:23 +02:00
|
|
|
%span.label.label-issue.grouped
|
2012-06-27 20:20:35 +02:00
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
2012-03-22 21:28:02 +01:00
|
|
|
- if issue.notes.any?
|
2012-07-05 08:35:23 +02:00
|
|
|
%span.btn.small.disabled.grouped
|
2012-06-26 20:20:05 +02:00
|
|
|
%i.icon-comment
|
|
|
|
= issue.notes.count
|
2012-02-21 23:31:18 +01:00
|
|
|
- if can? current_user, :modify_issue, issue
|
2012-01-29 11:04:09 +01:00
|
|
|
- if issue.closed
|
2012-07-05 08:35:23 +02:00
|
|
|
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small grouped", :remote => true
|
2012-01-29 11:04:09 +01:00
|
|
|
- else
|
2012-07-05 08:35:23 +02:00
|
|
|
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small grouped", :remote => true
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
|
2012-05-24 08:23:25 +02:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
|
|
|
|
2012-06-26 20:47:25 +02:00
|
|
|
- if issue.assignee
|
|
|
|
= image_tag gravatar_icon(issue.assignee_email), :class => "avatar"
|
|
|
|
- else
|
|
|
|
= image_tag "no_avatar.png", :class => "avatar"
|
|
|
|
|
2012-01-29 11:04:09 +01:00
|
|
|
= link_to project_issue_path(issue.project, issue) do
|
2012-03-03 12:03:03 +01:00
|
|
|
%p.row_title= truncate(issue.title, :length => 100)
|
2012-06-26 21:23:49 +02:00
|
|
|
|
|
|
|
%span.update-author
|
2012-07-02 20:51:48 +02:00
|
|
|
%small.cdark= "##{issue.id}"
|
2012-06-26 21:23:49 +02:00
|
|
|
- if issue.assignee
|
|
|
|
assigned to #{issue.assignee_name}
|
|
|
|
- else
|
|
|
|
|
|
|
|
|
|
|
|
- if issue.upvotes > 0
|
|
|
|
%span.badge.badge-success= "+#{issue.upvotes}"
|
|
|
|
|
|
|
|
|