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

57 lines
2.5 KiB
Text
Raw Normal View History

%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
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
2017-09-10 17:25:29 +05:30
.issue-title.title
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)
- 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)}
- 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|
= link_to_label(label, css_class: 'label-link')
= 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
- 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
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
2017-08-17 22:00:37 +05:30
%span updated #{time_ago_with_tooltip(issue.updated_at, placement: 'bottom', html_class: 'issue_update_ago')}