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'
|
2013-04-06 08:10:24 -04:00
|
|
|
.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-04-06 08:10:24 -04:00
|
|
|
|
|
|
|
.issue-title
|
2013-08-19 15:12:40 -04:00
|
|
|
%span.light= "##{issue.iid}"
|
2013-04-06 08:10:24 -04:00
|
|
|
= link_to_gfm truncate(issue.title, length: 100), project_issue_path(issue.project, issue), class: "row_title"
|
2013-10-13 04:00:51 -04:00
|
|
|
- if issue.closed?
|
|
|
|
%small.pull-right
|
|
|
|
= "CLOSED"
|
2013-04-06 08:10:24 -04:00
|
|
|
|
|
|
|
.issue-info
|
|
|
|
- if issue.assignee
|
|
|
|
assigned to #{link_to_member(@project, issue.assignee)}
|
|
|
|
- else
|
|
|
|
unassigned
|
|
|
|
- if issue.votes_count > 0
|
|
|
|
= render 'votes/votes_inline', votable: issue
|
2012-03-22 16:28:02 -04:00
|
|
|
- if issue.notes.any?
|
2013-04-06 08:10:24 -04:00
|
|
|
%span
|
|
|
|
%i.icon-comments
|
2012-06-26 14:20:05 -04:00
|
|
|
= issue.notes.count
|
2013-07-12 07:40:27 -04:00
|
|
|
- if issue.milestone
|
2013-04-06 08:10:24 -04:00
|
|
|
%span
|
|
|
|
%i.icon-time
|
|
|
|
= issue.milestone.title
|
|
|
|
.pull-right
|
2013-12-13 16:31:23 -05:00
|
|
|
%small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')} ago
|
2013-04-06 08:10:24 -04:00
|
|
|
|
|
|
|
.issue-labels
|
|
|
|
- issue.labels.each do |label|
|
2013-05-07 10:57:59 -04:00
|
|
|
%span{class: "label #{label_css_class(label.name)}"}
|
2013-04-06 08:10:24 -04:00
|
|
|
%i.icon-tag
|
|
|
|
= label.name
|
|
|
|
|
|
|
|
.issue-actions
|
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 15:23:49 -04:00
|
|
|
|