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}"
|
2014-01-08 05:42:57 -05:00
|
|
|
%span.str-truncated
|
|
|
|
= link_to_gfm issue.title, project_issue_path(issue.project, issue), class: "row_title"
|
2013-10-13 04:00:51 -04:00
|
|
|
- if issue.closed?
|
|
|
|
%small.pull-right
|
2014-08-26 11:58:05 -04:00
|
|
|
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
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-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
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-clock-o
|
2013-04-06 08:10:24 -04:00
|
|
|
= issue.milestone.title
|
|
|
|
.pull-right
|
2013-12-30 07:49:22 -05:00
|
|
|
%small updated #{time_ago_with_tooltip(issue.updated_at, 'bottom', 'issue_update_ago')}
|
2013-04-06 08:10:24 -04:00
|
|
|
|
|
|
|
.issue-labels
|
|
|
|
- issue.labels.each do |label|
|
2014-09-11 07:18:00 -04:00
|
|
|
= link_to project_issues_path(issue.project, label_name: label.name) do
|
|
|
|
= render_colored_label(label)
|
2013-04-06 08:10:24 -04:00
|
|
|
|
|
|
|
.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?
|
2014-07-02 13:05:36 -04:00
|
|
|
= link_to 'Reopen', project_issue_path(issue.project, issue, issue: {state_event: :reopen }, status_only: true), method: :put, class: "btn btn-small btn-grouped reopen_issue btn-reopen", remote: true
|
2012-01-29 05:04:09 -05:00
|
|
|
- else
|
2014-07-02 13:05:36 -04:00
|
|
|
= link_to 'Close', project_issue_path(issue.project, issue, issue: {state_event: :close }, status_only: true), method: :put, class: "btn btn-small btn-grouped close_issue btn-close", remote: true
|
2014-02-20 06:05:33 -05:00
|
|
|
= link_to edit_project_issue_path(issue.project, issue), class: "btn btn-small edit-issue-link btn-grouped" do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-pencil-square-o
|
2012-05-24 02:23:25 -04:00
|
|
|
Edit
|
|
|
|
|
2012-06-26 15:23:49 -04:00
|
|
|
|