debian-mirror-gitlab/app/views/shared/milestones/_issuable.html.haml

28 lines
1.3 KiB
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
-# @project is present when viewing Project's milestone
- project = @project || issuable.project
2017-09-10 17:25:29 +05:30
- labels = issuable.labels
2017-08-17 22:00:37 +05:30
- assignees = issuable.assignees
2020-04-08 14:13:33 +05:30
- base_url_args = [project]
2017-09-10 17:25:29 +05:30
- issuable_type_args = base_url_args + [issuable.class.table_name]
2017-08-17 22:00:37 +05:30
- issuable_url_args = base_url_args + [issuable]
2016-06-02 11:05:42 +05:30
2017-09-10 17:25:29 +05:30
%li.issuable-row
2016-06-02 11:05:42 +05:30
%span
- if show_project_name
%strong #{project.name} ·
- if issuable.is_a?(Issue)
= confidential_icon(issuable)
2017-09-10 17:25:29 +05:30
= link_to issuable.title, issuable_url_args, title: issuable.title
2017-08-17 22:00:37 +05:30
.issuable-detail
2020-04-08 14:13:33 +05:30
= link_to issuable_url_args, class: 'issue-link' do
2017-08-17 22:00:37 +05:30
%span.issuable-number= issuable.to_reference
2016-06-02 11:05:42 +05:30
2017-09-10 17:25:29 +05:30
- labels.each do |label|
2020-04-08 14:13:33 +05:30
= render_label(label.present(issuable_subject: project), link: polymorphic_path(issuable_type_args, { milestone_title: @milestone.title, label_name: label.title, state: 'all' }), small: true)
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
%span.assignee-icon
- assignees.each do |assignee|
2018-03-17 18:26:18 +05:30
= link_to polymorphic_path(issuable_type_args, { milestone_title: @milestone.title, assignee_id: assignee.id, state: 'all' }),
2020-05-24 23:13:21 +05:30
class: 'has-tooltip', title: _("Assigned to %{assignee_name}") % { assignee_name: assignee.name }, data: { container: 'body' } do
2018-03-27 19:54:05 +05:30
- image_tag(avatar_icon_for_user(assignee, 16), class: "avatar s16", alt: '')