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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
3.5 KiB
Text
Raw Normal View History

2020-10-24 23:57:45 +05:30
%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_container', qa_issue_title: issue.title } }
2021-02-22 17:27:13 +05:30
.issuable-info-container
2017-09-10 17:25:29 +05:30
- if @can_bulk_update
.issue-check.hidden
2021-06-08 01:23:25 +05:30
- checkbox_id = dom_id(issue, "selected")
%label.gl-sr-only{ for: checkbox_id }= issue.title
= check_box_tag checkbox_id, nil, false, 'data-id' => issue.id, class: "selected-issuable"
2021-02-22 17:27:13 +05:30
.issuable-main-info
.issue-title.title
%span.issue-title-text.js-onboarding-issue-item{ dir: "auto" }
- if issue.confidential?
%span.has-tooltip{ title: _('Confidential') }
= confidential_icon(issue)
2021-11-11 11:23:49 +05:30
= hidden_issue_icon(issue)
2022-01-26 12:08:38 +05:30
= link_to issue.title, issue_path(issue), class: 'js-prefetch-document'
2021-02-22 17:27:13 +05:30
= render_if_exists 'projects/issues/subepic_flag', issue: issue
- if issue.tasks?
%span.task-status.d-none.d-sm-inline-block
 
= issue.task_status
2017-09-10 17:25:29 +05:30
2021-02-22 17:27:13 +05:30
.issuable-info
%span.issuable-reference
#{issuable_reference(issue)}
%span.issuable-authored.d-none.d-sm-inline-block
·
- if issue.service_desk_reply_to
2022-01-26 12:08:38 +05:30
#{_('created %{timeAgoString} by %{email} via %{user}').html_safe % { timeAgoString: time_ago_with_tooltip(issue.created_at, placement: 'bottom'), email: issue.service_desk_reply_to, user: link_to_member(@project, issue.author, avatar: false) }}
- else
#{s_('IssueList|created %{timeAgoString} by %{user}').html_safe % { timeAgoString: time_ago_with_tooltip(issue.created_at, placement: 'bottom'), user: link_to_member(@project, issue.author, avatar: false) }}
2021-02-22 17:27:13 +05:30
= render_if_exists 'shared/issuable/gitlab_team_member_badge', author: issue.author
- if issue.milestone
%span.issuable-milestone.d-none.d-sm-inline-block
 
= 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
= sprite_icon('clock', css_class: 'gl-vertical-align-text-bottom')
= issue.milestone.title
- if issue.due_date
2021-10-27 15:23:28 +05:30
%span.issuable-due-date.d-none.d-sm-inline-block.has-tooltip{ class: "#{'cred' if issue.overdue? && !issue.closed?}", title: _('Due date') }
2021-02-22 17:27:13 +05:30
 
= sprite_icon('calendar')
= issue.due_date.to_s(:medium)
2021-01-29 00:20:46 +05:30
2021-02-22 17:27:13 +05:30
= render_if_exists "projects/issues/issue_weight", issue: issue
= render_if_exists "projects/issues/health_status", issue: issue
2021-01-29 00:20:46 +05:30
2021-02-22 17:27:13 +05:30
- if issue.labels.any?
 
- presented_labels_sorted_by_title(issue.labels, issue.project).each do |label|
= link_to_label(label, small: true)
2019-07-31 22:56:46 +05:30
2021-02-22 17:27:13 +05:30
= render "projects/issues/issue_estimate", issue: issue
2017-09-10 17:25:29 +05:30
2021-02-22 17:27:13 +05:30
.issuable-meta
%ul.controls
- if issue.closed? && issue.moved?
%li.issuable-status
= _('CLOSED (MOVED)')
- elsif issue.closed?
%li.issuable-status
= _('CLOSED')
- if issue.assignees.any?
%li.gl-display-flex
= render 'shared/issuable/assignees', project: @project, issuable: issue
2015-12-23 02:04:40 +05:30
2021-02-22 17:27:13 +05:30
= render 'shared/issuable_meta_data', issuable: issue
2015-12-23 02:04:40 +05:30
2021-02-22 17:27:13 +05:30
.float-right.issuable-updated-at.d-none.d-sm-inline-block
%span
= _('updated %{time_ago}').html_safe % { time_ago: time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago') }