2015-02-25 22:34:16 -05:00
|
|
|
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
|
2015-06-26 09:45:45 -04:00
|
|
|
- if controller.controller_name == 'issues' && can?(current_user, :admin_issue, @project)
|
2013-04-06 08:10:24 -04:00
|
|
|
.issue-check
|
2015-06-26 09:45:45 -04:00
|
|
|
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue"
|
2013-04-06 08:10:24 -04:00
|
|
|
|
2016-03-18 14:02:08 -04:00
|
|
|
.issue-title.title
|
2015-07-22 10:53:18 -04:00
|
|
|
%span.issue-title-text
|
2016-03-17 17:00:03 -04:00
|
|
|
= confidential_icon(issue)
|
2016-03-18 14:02:08 -04:00
|
|
|
= link_to_gfm issue.title, issue_path(issue)
|
|
|
|
%ul.controls
|
2015-07-22 10:53:18 -04:00
|
|
|
- if issue.closed?
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
2015-07-22 10:53:18 -04:00
|
|
|
CLOSED
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2015-07-22 10:53:18 -04:00
|
|
|
- if issue.assignee
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
|
|
|
= link_to_member(@project, issue.assignee, name: false, title: "Assigned to :name")
|
|
|
|
|
2016-02-17 08:32:02 -05:00
|
|
|
- upvotes, downvotes = issue.upvotes, issue.downvotes
|
2016-02-22 05:21:02 -05:00
|
|
|
- if upvotes > 0
|
2016-02-17 08:32:02 -05:00
|
|
|
%li
|
|
|
|
= icon('thumbs-up')
|
|
|
|
= upvotes
|
|
|
|
|
2016-02-22 05:21:02 -05:00
|
|
|
- if downvotes > 0
|
2016-02-17 08:32:02 -05:00
|
|
|
%li
|
|
|
|
= icon('thumbs-down')
|
|
|
|
= downvotes
|
|
|
|
|
2016-04-07 18:49:35 -04:00
|
|
|
- note_count = issue.notes.user.nonawards.count
|
2015-07-22 10:53:18 -04:00
|
|
|
- if note_count > 0
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
|
|
|
= link_to issue_path(issue) + "#notes" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-07-22 10:53:18 -04:00
|
|
|
- else
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
|
|
|
= link_to issue_path(issue) + "#notes", class: "issue-no-comments" do
|
|
|
|
= icon('comments')
|
2015-12-08 16:39:26 -05:00
|
|
|
= note_count
|
2015-07-22 10:53:18 -04:00
|
|
|
|
|
|
|
.issue-info
|
2015-12-02 08:19:25 -05:00
|
|
|
#{issue.to_reference} ·
|
|
|
|
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, issue.author, avatar: false)}
|
2015-07-22 10:53:18 -04:00
|
|
|
- if issue.milestone
|
|
|
|
|
2015-12-02 08:19:25 -05:00
|
|
|
= link_to namespace_project_issues_path(issue.project.namespace, issue.project, milestone_title: issue.milestone.title) do
|
|
|
|
= icon('clock-o')
|
2015-07-22 10:53:18 -04:00
|
|
|
= issue.milestone.title
|
2015-12-02 08:20:03 -05:00
|
|
|
- if issue.labels.any?
|
|
|
|
|
|
|
|
- issue.labels.each do |label|
|
|
|
|
= link_to_label(label, project: issue.project)
|
2015-07-22 10:53:18 -04:00
|
|
|
- if issue.tasks?
|
2015-12-02 08:20:03 -05:00
|
|
|
|
2015-07-22 10:53:18 -04:00
|
|
|
%span.task-status
|
|
|
|
= issue.task_status
|
2014-10-05 01:53:44 -04:00
|
|
|
|
2015-07-22 10:53:18 -04:00
|
|
|
.pull-right.issue-updated-at
|
2015-09-08 03:32:06 -04:00
|
|
|
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}
|