debian-mirror-gitlab/app/views/projects/issues/_issue.html.haml

64 lines
3 KiB
Text
Raw Normal View History

2019-12-26 22:10:19 +05:30
-# DANGER: Any changes to this file need to be reflected in issuables_list/components/issuable.vue!
%li{ id: dom_id(issue), class: issue_css_classes(issue), url: issue_path(issue), data: { labels: issue.label_ids, id: issue.id, qa_selector: 'issue', qa_issue_title: issue.title } }
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
2018-12-05 23:21:45 +05:30
= check_box_tag dom_id(issue, "selected"), nil, false, 'data-id' => issue.id, class: "selected-issuable"
.issuable-info-container
.issuable-main-info
2020-05-24 23:13:21 +05:30
.issue-title.title.d-flex.align-items-center
2019-09-30 21:07:59 +05:30
%span.issue-title-text.js-onboarding-issue-item{ dir: "auto" }
2018-05-09 12:01:36 +05:30
- if issue.confidential?
%span.has-tooltip{ title: _('Confidential') }
= confidential_icon(issue)
2017-09-10 17:25:29 +05:30
= link_to issue.title, issue_path(issue)
2020-05-24 23:13:21 +05:30
= render_if_exists 'projects/issues/subepic_flag', issue: issue
2017-09-10 17:25:29 +05:30
- if issue.tasks?
2018-11-08 19:23:39 +05:30
%span.task-status.d-none.d-sm-inline-block
2017-09-10 17:25:29 +05:30
 
= issue.task_status
.issuable-info
%span.issuable-reference
#{issuable_reference(issue)}
2018-11-08 19:23:39 +05:30
%span.issuable-authored.d-none.d-sm-inline-block
2017-09-10 17:25:29 +05:30
·
opened #{time_ago_with_tooltip(issue.created_at, placement: 'bottom')}
by #{link_to_member(@project, issue.author, avatar: false)}
2020-05-24 23:13:21 +05:30
= render_if_exists 'shared/issuable/gitlab_team_member_badge', {author: issue.author}
2017-09-10 17:25:29 +05:30
- if issue.milestone
2018-11-08 19:23:39 +05:30
%span.issuable-milestone.d-none.d-sm-inline-block
2017-09-10 17:25:29 +05:30
 
2018-11-08 19:23:39 +05:30
= link_to project_issues_path(issue.project, milestone_title: issue.milestone.title), data: { html: 'true', toggle: 'tooltip', title: milestone_tooltip_due_date(issue.milestone) } do
2017-09-10 17:25:29 +05:30
= icon('clock-o')
= issue.milestone.title
- if issue.due_date
2018-11-08 19:23:39 +05:30
%span.issuable-due-date.d-none.d-sm-inline-block.has-tooltip{ class: "#{'cred' if issue.overdue?}", title: _('Due date') }
2017-09-10 17:25:29 +05:30
 
= icon('calendar')
= issue.due_date.to_s(:medium)
- if issue.labels.any?
 
2019-07-31 22:56:46 +05:30
- presented_labels_sorted_by_title(issue.labels, issue.project).each do |label|
2020-04-08 14:13:33 +05:30
= link_to_label(label, small: true)
2019-07-31 22:56:46 +05:30
= render_if_exists "projects/issues/issue_weight", issue: issue
2017-09-10 17:25:29 +05:30
.issuable-meta
2017-08-17 22:00:37 +05:30
%ul.controls
2019-12-21 20:55:43 +05:30
- if issue.moved?
%li.issuable-status
= _('CLOSED (MOVED)')
- elsif issue.closed?
2017-09-10 17:25:29 +05:30
%li.issuable-status
2019-10-12 21:52:04 +05:30
= _('CLOSED')
2017-08-17 22:00:37 +05:30
- if issue.assignees.any?
%li
2019-07-31 22:56:46 +05:30
= render 'shared/issuable/assignees', project: @project, issuable: 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
2018-11-08 19:23:39 +05:30
.float-right.issuable-updated-at.d-none.d-sm-inline-block
2019-10-12 21:52:04 +05:30
%span
= _('updated %{time_ago}').html_safe % { time_ago: time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago') }