2016-05-31 17:11:46 -04:00
|
|
|
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue), data: { labels: issue.label_ids, id: issue.id } }
|
2017-02-08 02:04:00 -05:00
|
|
|
.issue-box
|
2017-05-15 18:12:43 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
.issue-check.hidden
|
2017-02-08 02:04:00 -05:00
|
|
|
= check_box_tag dom_id(issue, "selected"), nil, false, 'data-id' => issue.id, class: "selected_issue"
|
|
|
|
.issue-info-container
|
2017-06-29 13:34:06 -04:00
|
|
|
.issue-main-info
|
|
|
|
.issue-title.title
|
|
|
|
%span.issue-title-text
|
2018-03-21 12:27:19 -04:00
|
|
|
- if issue.confidential?
|
|
|
|
%span.has-tooltip{ title: _('Confidential') }
|
|
|
|
= confidential_icon(issue)
|
2017-06-29 13:34:06 -04:00
|
|
|
= link_to issue.title, issue_path(issue)
|
|
|
|
- if issue.tasks?
|
2018-04-09 17:50:40 -04:00
|
|
|
%span.task-status.d-none.d-sm-block
|
2017-06-29 13:34:06 -04:00
|
|
|
|
|
|
|
= issue.task_status
|
|
|
|
|
|
|
|
.issuable-info
|
|
|
|
%span.issuable-reference
|
|
|
|
#{issuable_reference(issue)}
|
2018-04-09 17:50:40 -04:00
|
|
|
%span.issuable-authored.d-none.d-sm-block
|
2017-06-29 13:34:06 -04:00
|
|
|
·
|
|
|
|
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, issue.author, avatar: false)}
|
|
|
|
- if issue.milestone
|
2018-04-09 17:50:40 -04:00
|
|
|
%span.issuable-milestone.d-none.d-sm-block
|
2017-06-29 13:34:06 -04:00
|
|
|
|
2018-03-21 12:27:19 -04:00
|
|
|
= link_to project_issues_path(issue.project, milestone_title: issue.milestone.title), data: { html: 1, toggle: 'tooltip', title: issuable_milestone_tooltip_title(issue) } do
|
2017-06-29 13:34:06 -04:00
|
|
|
= icon('clock-o')
|
|
|
|
= issue.milestone.title
|
|
|
|
- if issue.due_date
|
2018-04-09 17:50:40 -04:00
|
|
|
%span.issuable-due-date.d-none.d-sm-block.has-tooltip{ class: "#{'cred' if issue.overdue?}", title: _('Due date') }
|
2017-06-29 13:34:06 -04:00
|
|
|
|
|
|
|
= 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-02-08 02:04:00 -05:00
|
|
|
%ul.controls
|
|
|
|
- if issue.closed?
|
2017-06-29 13:34:06 -04:00
|
|
|
%li.issuable-status
|
2017-02-08 02:04:00 -05:00
|
|
|
CLOSED
|
2017-05-04 08:11:15 -04:00
|
|
|
- if issue.assignees.any?
|
2017-02-08 02:04:00 -05:00
|
|
|
%li
|
2017-05-04 08:11:15 -04:00
|
|
|
= render 'shared/issuable/assignees', project: @project, issue: issue
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2017-01-23 15:40:25 -05:00
|
|
|
= render 'shared/issuable_meta_data', issuable: issue
|
2016-02-17 08:32:02 -05:00
|
|
|
|
2018-04-09 17:50:40 -04:00
|
|
|
.float-right.issuable-updated-at.d-none.d-sm-block
|
2017-02-08 02:04:00 -05:00
|
|
|
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}
|