2016-03-06 23:07:19 -05:00
|
|
|
-# @project is present when viewing Project's milestone
|
|
|
|
- project = @project || issuable.project
|
2017-07-07 04:49:33 -04:00
|
|
|
- labels = issuable.labels
|
2017-05-04 08:11:15 -04:00
|
|
|
- assignees = issuable.assignees
|
2020-03-04 19:07:49 -05:00
|
|
|
- base_url_args = [project]
|
2017-07-07 04:49:33 -04:00
|
|
|
- issuable_type_args = base_url_args + [issuable.class.table_name]
|
2017-04-24 11:58:15 -04:00
|
|
|
- issuable_url_args = base_url_args + [issuable]
|
2016-03-06 23:07:19 -05:00
|
|
|
|
2017-07-06 02:44:23 -04:00
|
|
|
%li.issuable-row
|
2016-03-06 23:07:19 -05:00
|
|
|
%span
|
|
|
|
- if show_project_name
|
|
|
|
%strong #{project.name} ·
|
2016-03-17 17:00:03 -04:00
|
|
|
- if issuable.is_a?(Issue)
|
|
|
|
= confidential_icon(issuable)
|
2017-06-26 01:57:32 -04:00
|
|
|
= link_to issuable.title, issuable_url_args, title: issuable.title
|
2016-12-23 04:37:12 -05:00
|
|
|
.issuable-detail
|
2020-03-04 19:07:49 -05:00
|
|
|
= link_to issuable_url_args, class: 'issue-link' do
|
2017-01-13 08:54:20 -05:00
|
|
|
%span.issuable-number= issuable.to_reference
|
2016-03-06 23:07:19 -05:00
|
|
|
|
2017-07-07 04:49:33 -04:00
|
|
|
- labels.each do |label|
|
2020-02-25 10:08:50 -05:00
|
|
|
= 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-03-06 23:07:19 -05:00
|
|
|
|
2016-12-22 06:00:09 -05:00
|
|
|
%span.assignee-icon
|
2017-05-04 08:11:15 -04:00
|
|
|
- assignees.each do |assignee|
|
2017-09-15 04:44:12 -04:00
|
|
|
= link_to polymorphic_path(issuable_type_args, { milestone_title: @milestone.title, assignee_id: assignee.id, state: 'all' }),
|
2020-05-18 05:08:12 -04:00
|
|
|
class: 'has-tooltip', title: _("Assigned to %{assignee_name}") % { assignee_name: assignee.name }, data: { container: 'body' } do
|
2018-02-09 05:43:12 -05:00
|
|
|
- image_tag(avatar_icon_for_user(assignee, 16), class: "avatar s16", alt: '')
|