27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
-# @project is present when viewing Project's milestone
|
|
- project = @project || issuable.project
|
|
- labels = issuable.labels
|
|
- assignees = issuable.assignees
|
|
- base_url_args = [project]
|
|
- issuable_type_args = base_url_args + [issuable.class.table_name.to_sym]
|
|
- issuable_url_args = base_url_args + [issuable]
|
|
|
|
%li.issuable-row
|
|
%span
|
|
- if show_project_name
|
|
%strong #{project.name} ·
|
|
- if issuable.is_a?(Issue)
|
|
= confidential_icon(issuable)
|
|
= link_to issuable.title, issuable_url_args, title: issuable.title
|
|
.issuable-detail
|
|
= link_to issuable_url_args, class: 'issue-link' do
|
|
%span.issuable-number= issuable.to_reference
|
|
|
|
- labels.each do |label|
|
|
= 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)
|
|
|
|
%span.assignee-icon
|
|
- assignees.each do |assignee|
|
|
= link_to polymorphic_path(issuable_type_args, { milestone_title: @milestone.title, assignee_id: assignee.id, state: 'all' }),
|
|
class: 'has-tooltip', title: _("Assigned to %{assignee_name}") % { assignee_name: assignee.name }, data: { container: 'body' } do
|
|
- image_tag(avatar_icon_for_user(assignee, 16), class: "avatar s16", alt: '')
|