2012-12-17 22:14:05 -05:00
|
|
|
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: project_issue_path(issue.project, issue) }
|
2012-07-27 22:43:34 -04:00
|
|
|
- if controller.controller_name == 'issues'
|
|
|
|
.issue_check
|
2012-08-10 18:07:50 -04:00
|
|
|
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :modify_issue, issue)
|
2013-01-30 09:40:43 -05:00
|
|
|
.pull-right
|
2012-03-22 16:28:02 -04:00
|
|
|
- if issue.notes.any?
|
2013-01-29 15:29:21 -05:00
|
|
|
%span.btn.btn-small.disabled.grouped
|
2012-06-26 14:20:05 -04:00
|
|
|
%i.icon-comment
|
|
|
|
= issue.notes.count
|
2012-02-21 17:31:18 -05:00
|
|
|
- if can? current_user, :modify_issue, issue
|
2013-02-18 04:10:58 -05:00
|
|
|
- if issue.closed?
|
2013-02-18 07:49:56 -05:00
|
|
|
= link_to 'Reopen', project_issue_path(issue.project, issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-small grouped reopen_issue", remote: true
|
2012-01-29 05:04:09 -05:00
|
|
|
- else
|
2013-02-18 07:49:56 -05:00
|
|
|
= link_to 'Close', project_issue_path(issue.project, issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-small grouped close_issue", remote: true
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link grouped" do
|
2012-05-24 02:23:25 -04:00
|
|
|
%i.icon-edit
|
|
|
|
Edit
|
|
|
|
|
2012-06-26 14:47:25 -04:00
|
|
|
- if issue.assignee
|
2012-08-10 18:07:50 -04:00
|
|
|
= image_tag gravatar_icon(issue.assignee_email), class: "avatar"
|
2012-06-26 14:47:25 -04:00
|
|
|
- else
|
2012-08-10 18:07:50 -04:00
|
|
|
= image_tag "no_avatar.png", class: "avatar"
|
2012-06-26 14:47:25 -04:00
|
|
|
|
2012-08-10 18:07:50 -04:00
|
|
|
%p= link_to_gfm truncate(issue.title, length: 100), project_issue_path(issue.project, issue), class: "row_title"
|
2012-06-26 15:23:49 -04:00
|
|
|
|
|
|
|
%span.update-author
|
2012-12-14 00:34:05 -05:00
|
|
|
%span.cdark= "##{issue.id}"
|
2012-06-26 15:23:49 -04:00
|
|
|
- if issue.assignee
|
|
|
|
assigned to #{issue.assignee_name}
|
|
|
|
- else
|
|
|
|
|
|
|
|
|
2012-09-08 10:44:56 -04:00
|
|
|
- if issue.votes_count > 0
|
2012-09-10 09:27:14 -04:00
|
|
|
= render 'votes/votes_inline', votable: issue
|
2013-01-08 00:14:05 -05:00
|
|
|
%span
|
|
|
|
- issue.labels.each do |label|
|
2013-04-04 03:53:39 -04:00
|
|
|
%span.label.label-info
|
2013-01-08 00:14:05 -05:00
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|