2016-06-16 23:09:34 +05:30
|
|
|
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue), data: { labels: issue.label_ids, id: issue.id } }
|
2017-08-17 22:00:37 +05:30
|
|
|
.issue-box
|
2017-09-10 17:25:29 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
.issue-check.hidden
|
2017-08-17 22:00:37 +05:30
|
|
|
= check_box_tag dom_id(issue, "selected"), nil, false, 'data-id' => issue.id, class: "selected_issue"
|
|
|
|
.issue-info-container
|
2017-09-10 17:25:29 +05:30
|
|
|
.issue-main-info
|
|
|
|
.issue-title.title
|
|
|
|
%span.issue-title-text
|
|
|
|
= confidential_icon(issue)
|
|
|
|
= link_to issue.title, issue_path(issue)
|
|
|
|
- if issue.tasks?
|
|
|
|
%span.task-status.hidden-xs
|
|
|
|
|
|
|
|
= issue.task_status
|
|
|
|
|
|
|
|
.issuable-info
|
|
|
|
%span.issuable-reference
|
|
|
|
#{issuable_reference(issue)}
|
|
|
|
%span.issuable-authored.hidden-xs
|
|
|
|
·
|
|
|
|
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, issue.author, avatar: false)}
|
|
|
|
- if issue.milestone
|
|
|
|
%span.issuable-milestone.hidden-xs
|
|
|
|
|
|
|
|
= link_to project_issues_path(issue.project, milestone_title: issue.milestone.title) do
|
|
|
|
= icon('clock-o')
|
|
|
|
= issue.milestone.title
|
|
|
|
- if issue.due_date
|
|
|
|
%span.issuable-due-date.hidden-xs{ class: "#{'cred' if issue.overdue?}" }
|
|
|
|
|
|
|
|
= icon('calendar')
|
|
|
|
= issue.due_date.to_s(:medium)
|
|
|
|
- if issue.labels.any?
|
|
|
|
|
|
|
|
- issue.labels.each do |label|
|
|
|
|
= link_to_label(label, subject: issue.project, css_class: 'label-link')
|
|
|
|
|
|
|
|
.issuable-meta
|
2017-08-17 22:00:37 +05:30
|
|
|
%ul.controls
|
|
|
|
- if issue.closed?
|
2017-09-10 17:25:29 +05:30
|
|
|
%li.issuable-status
|
2017-08-17 22:00:37 +05:30
|
|
|
CLOSED
|
|
|
|
- if issue.assignees.any?
|
|
|
|
%li
|
|
|
|
= render 'shared/issuable/assignees', project: @project, issue: issue
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/issuable_meta_data', issuable: issue
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.pull-right.issuable-updated-at.hidden-xs
|
2017-08-17 22:00:37 +05:30
|
|
|
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}
|