gitlab-org--gitlab-foss/app/views/projects/issues/_issue.html.haml

55 lines
2.3 KiB
Text
Raw Normal View History

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
- 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
- if issue.assignees.any?
2017-02-08 02:04:00 -05:00
%li
= render 'shared/issuable/assignees', project: @project, issue: issue
= render 'shared/issuable_meta_data', issuable: issue
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')}