2015-04-26 12:48:37 +05:30
|
|
|
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue) }
|
2015-09-11 14:41:01 +05:30
|
|
|
- if controller.controller_name == 'issues' && can?(current_user, :admin_issue, @project)
|
2014-09-02 18:07:02 +05:30
|
|
|
.issue-check
|
2015-09-11 14:41:01 +05:30
|
|
|
= check_box_tag dom_id(issue,"selected"), nil, false, 'data-id' => issue.id, class: "selected_issue"
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.issue-title
|
2015-09-11 14:41:01 +05:30
|
|
|
%span.issue-title-text
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to_gfm issue.title, issue_path(issue), class: "row_title"
|
2015-09-11 14:41:01 +05:30
|
|
|
.issue-labels
|
|
|
|
- issue.labels.each do |label|
|
|
|
|
= link_to_label(label, project: issue.project)
|
2015-04-26 12:48:37 +05:30
|
|
|
.pull-right.light
|
|
|
|
- if issue.closed?
|
|
|
|
%span
|
|
|
|
CLOSED
|
2015-09-11 14:41:01 +05:30
|
|
|
- if issue.assignee
|
|
|
|
= link_to_member(@project, issue.assignee, name: false)
|
2015-04-26 12:48:37 +05:30
|
|
|
- note_count = issue.notes.user.count
|
|
|
|
- if note_count > 0
|
|
|
|
|
|
|
|
%span
|
|
|
|
%i.fa.fa-comments
|
|
|
|
= note_count
|
2015-09-11 14:41:01 +05:30
|
|
|
- else
|
|
|
|
|
|
|
|
%span.issue-no-comments
|
|
|
|
%i.fa.fa-comments
|
|
|
|
= 0
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.issue-info
|
2015-09-11 14:41:01 +05:30
|
|
|
= "#{issue.to_reference} opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')} by #{link_to_member(@project, issue.author, avatar: false)}".html_safe
|
2014-09-02 18:07:02 +05:30
|
|
|
- if issue.votes_count > 0
|
|
|
|
= render 'votes/votes_inline', votable: issue
|
|
|
|
- if issue.milestone
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
%span
|
2015-04-26 12:48:37 +05:30
|
|
|
%i.fa.fa-clock-o
|
2014-09-02 18:07:02 +05:30
|
|
|
= issue.milestone.title
|
2015-04-26 12:48:37 +05:30
|
|
|
- if issue.tasks?
|
|
|
|
%span.task-status
|
|
|
|
= issue.task_status
|
|
|
|
|
|
|
|
.pull-right.issue-updated-at
|
2015-09-25 12:07:36 +05:30
|
|
|
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}
|