2016-06-02 11:05:42 +05:30
|
|
|
-# @project is present when viewing Project's milestone
|
|
|
|
- project = @project || issuable.project
|
2017-08-17 22:00:37 +05:30
|
|
|
- namespace = @project_namespace || project.namespace.becomes(Namespace)
|
2017-09-10 17:25:29 +05:30
|
|
|
- labels = issuable.labels
|
2017-08-17 22:00:37 +05:30
|
|
|
- assignees = issuable.assignees
|
|
|
|
- base_url_args = [namespace, 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} ·
|
|
|
|
- elsif show_full_project_name
|
|
|
|
%strong #{project.name_with_namespace} ·
|
|
|
|
- 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
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to [namespace, project, issuable] 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|
|
2017-08-17 22:00:37 +05:30
|
|
|
= link_to polymorphic_path(issuable_type_args, { milestone_title: @milestone.title, label_name: label.title, state: 'all' }) do
|
2016-06-02 11:05:42 +05:30
|
|
|
- render_colored_label(label)
|
|
|
|
|
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' }),
|
2016-08-24 12:49:21 +05:30
|
|
|
class: 'has-tooltip', title: "Assigned to #{assignee.name}", data: { container: 'body' } do
|
2017-08-17 22:00:37 +05:30
|
|
|
- image_tag(avatar_icon(assignee, 16), class: "avatar s16", alt: '')
|