2011-10-25 06:34:02 +02:00
|
|
|
%tr{ :id => dom_id(issue), :class => "issue #{issue.critical ? "critical" : ""}", :url => project_issue_path(@project, issue) }
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
2011-11-07 21:48:55 +01:00
|
|
|
%strong.issue-number{:class => sort_class}= "##{issue.id}"
|
2011-11-07 16:55:16 +01:00
|
|
|
%span
|
|
|
|
= truncate(html_escape(issue.title), :length => fixed_mode? ? 100 : 200)
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
%div.note-author
|
|
|
|
%strong= issue.assignee.name
|
|
|
|
%cite.cgray
|
2011-11-22 14:26:53 +01:00
|
|
|
= time_ago_in_words(issue.created_at)
|
2011-11-07 16:55:16 +01:00
|
|
|
ago
|
|
|
|
- if issue.critical
|
|
|
|
%span.tag.high critical
|
|
|
|
- if issue.today?
|
|
|
|
%span.tag.today today
|
|
|
|
.right.action-links
|
|
|
|
- if can? current_user, :write_issue, issue
|
|
|
|
- if issue.closed
|
|
|
|
= link_to 'Reopen', project_issue_path(@project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "cgray", :remote => true
|
2011-11-15 09:34:30 +01:00
|
|
|
- else
|
2011-11-07 16:55:16 +01:00
|
|
|
= link_to 'Resolve', project_issue_path(@project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "cgray", :remote => true
|
|
|
|
- if can? current_user, :write_issue, issue
|
2011-11-07 21:31:51 +01:00
|
|
|
= link_to 'Edit', edit_project_issue_path(@project, issue), :class => "cgray edit-issue-link", :remote => true
|
2011-11-07 16:55:16 +01:00
|
|
|
- if can?(current_user, :admin_issue, @project) || issue.author == current_user
|
2011-11-21 08:26:10 +01:00
|
|
|
= link_to 'Remove', [@project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-issue negative", :id => "destroy_issue_#{issue.id}"
|