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-12-23 02:04:40 +05:30
|
|
|
%ul.controls.light
|
2015-04-26 12:48:37 +05:30
|
|
|
- if issue.closed?
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
2015-04-26 12:48:37 +05:30
|
|
|
CLOSED
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if issue.assignee
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= link_to_member(@project, issue.assignee, name: false, title: "Assigned to :name")
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
- note_count = issue.notes.user.count
|
|
|
|
- if note_count > 0
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= link_to issue_path(issue) + "#notes" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-09-11 14:41:01 +05:30
|
|
|
- else
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= link_to issue_path(issue) + "#notes", class: "issue-no-comments" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.issue-info
|
2015-12-23 02:04:40 +05:30
|
|
|
#{issue.to_reference} ·
|
|
|
|
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, issue.author, avatar: false)}
|
2014-09-02 18:07:02 +05:30
|
|
|
- if issue.milestone
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_issues_path(issue.project.namespace, issue.project, milestone_title: issue.milestone.title) do
|
|
|
|
= icon('clock-o')
|
2014-09-02 18:07:02 +05:30
|
|
|
= issue.milestone.title
|
2015-12-23 02:04:40 +05:30
|
|
|
- if issue.labels.any?
|
|
|
|
|
|
|
|
- issue.labels.each do |label|
|
|
|
|
= link_to_label(label, project: issue.project)
|
2015-04-26 12:48:37 +05:30
|
|
|
- if issue.tasks?
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
%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')}
|