2016-03-06 23:07:19 -05:00
|
|
|
-# @project is present when viewing Project's milestone
|
|
|
|
- project = @project || issuable.project
|
2017-04-24 11:58:15 -04:00
|
|
|
- namespace = @project_namespace || project.namespace.becomes(Namespace)
|
2017-07-07 04:49:33 -04:00
|
|
|
- labels = issuable.labels
|
2017-05-04 08:11:15 -04:00
|
|
|
- assignees = issuable.assignees
|
2017-04-24 11:58:15 -04:00
|
|
|
- base_url_args = [namespace, 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} ·
|
|
|
|
- elsif show_full_project_name
|
2018-03-05 08:45:35 -05:00
|
|
|
%strong #{project.full_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
|
2018-02-19 12:40:26 -05:00
|
|
|
= link_to [namespace, project, issuable], 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|
|
2017-04-24 11:58:15 -04:00
|
|
|
= link_to polymorphic_path(issuable_type_args, { milestone_title: @milestone.title, label_name: label.title, state: 'all' }) do
|
2016-03-06 23:07:19 -05:00
|
|
|
- render_colored_label(label)
|
|
|
|
|
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' }),
|
2016-05-25 19:08:48 -04:00
|
|
|
class: 'has-tooltip', title: "Assigned to #{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: '')
|