2015-02-26 03:34:16 +00:00
|
|
|
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
|
2012-07-28 02:43:34 +00:00
|
|
|
- if controller.controller_name == 'issues'
|
2013-04-06 12:10:24 +00:00
|
|
|
.issue-check
|
2015-06-26 13:05:30 +00:00
|
|
|
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue", disabled: !can?(current_user, :set_assignee, issue)
|
2013-04-06 12:10:24 +00:00
|
|
|
|
|
|
|
.issue-title
|
2015-06-08 14:33:33 +00:00
|
|
|
%span.issue-title-text
|
2015-02-26 03:34:16 +00:00
|
|
|
= link_to_gfm issue.title, issue_path(issue), class: "row_title"
|
2015-04-21 08:26:36 +00:00
|
|
|
.issue-labels
|
|
|
|
- issue.labels.each do |label|
|
2015-05-22 03:40:25 +00:00
|
|
|
= link_to_label(label, project: issue.project)
|
2015-02-20 08:11:25 +00:00
|
|
|
.pull-right.light
|
2015-02-20 05:55:47 +00:00
|
|
|
- if issue.closed?
|
|
|
|
%span
|
|
|
|
CLOSED
|
2015-04-21 08:26:36 +00:00
|
|
|
- if issue.assignee
|
|
|
|
= link_to_member(@project, issue.assignee, name: false)
|
2015-03-23 15:43:08 +00:00
|
|
|
- note_count = issue.notes.user.count
|
|
|
|
- if note_count > 0
|
2015-02-20 05:55:47 +00:00
|
|
|
|
|
|
|
%span
|
|
|
|
%i.fa.fa-comments
|
2015-03-23 15:43:08 +00:00
|
|
|
= note_count
|
2015-04-21 08:26:36 +00:00
|
|
|
- else
|
|
|
|
|
|
|
|
%span.issue-no-comments
|
|
|
|
%i.fa.fa-comments
|
|
|
|
= 0
|
2013-04-06 12:10:24 +00:00
|
|
|
|
|
|
|
.issue-info
|
2015-06-17 18:04:14 +00:00
|
|
|
= "##{issue.iid} opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')} by #{link_to_member(@project, issue.author, avatar: false)}".html_safe
|
2013-04-06 12:10:24 +00:00
|
|
|
- if issue.votes_count > 0
|
|
|
|
= render 'votes/votes_inline', votable: issue
|
2013-07-12 11:40:27 +00:00
|
|
|
- if issue.milestone
|
2015-04-21 08:26:36 +00:00
|
|
|
|
2013-04-06 12:10:24 +00:00
|
|
|
%span
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-clock-o
|
2013-04-06 12:10:24 +00:00
|
|
|
= issue.milestone.title
|
2014-10-05 05:53:44 +00:00
|
|
|
- if issue.tasks?
|
|
|
|
%span.task-status
|
|
|
|
= issue.task_status
|
|
|
|
|
2014-12-02 09:31:57 +00:00
|
|
|
.pull-right.issue-updated-at
|
2015-06-17 18:04:14 +00:00
|
|
|
%small updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}
|