2019-11-07 16:06:14 -05:00
|
|
|
.detail-page-header.milestone-page-header
|
|
|
|
.status-box{ class: status_box_class(milestone) }
|
|
|
|
= milestone_status_string(milestone)
|
|
|
|
|
|
|
|
.header-text-content
|
|
|
|
%span.identifier
|
|
|
|
%strong
|
|
|
|
= _('Milestone')
|
|
|
|
- if milestone.due_date || milestone.start_date
|
|
|
|
= milestone_date_range(milestone)
|
|
|
|
|
|
|
|
.milestone-buttons
|
|
|
|
- if can?(current_user, :admin_milestone, @group || @project)
|
2020-11-04 13:08:42 -05:00
|
|
|
= link_to _('Edit'), edit_milestone_path(milestone), class: 'btn gl-button btn-grouped'
|
2019-11-07 16:06:14 -05:00
|
|
|
|
|
|
|
- if milestone.project_milestone? && milestone.project.group
|
2021-01-14 19:10:45 -05:00
|
|
|
%button.js-promote-project-milestone-button.btn.gl-button.btn-grouped{ data: { milestone_title: milestone.title,
|
2019-11-07 16:06:14 -05:00
|
|
|
group_name: milestone.project.group.name,
|
2021-01-14 19:10:45 -05:00
|
|
|
url: promote_project_milestone_path(milestone.project, milestone)},
|
2019-11-07 16:06:14 -05:00
|
|
|
disabled: true,
|
|
|
|
type: 'button' }
|
|
|
|
= _('Promote')
|
|
|
|
#promote-milestone-modal
|
|
|
|
|
|
|
|
- if milestone.active?
|
2020-11-04 13:08:42 -05:00
|
|
|
= link_to _('Close milestone'), update_milestone_path(milestone, { state_event: :close }), method: :put, class: 'btn gl-button btn-grouped btn-close'
|
2019-11-07 16:06:14 -05:00
|
|
|
- else
|
2020-12-10 16:10:15 -05:00
|
|
|
= link_to _('Reopen milestone'), update_milestone_path(milestone, { state_event: :activate }), method: :put, class: 'btn gl-button btn-grouped'
|
2019-11-07 16:06:14 -05:00
|
|
|
|
2020-05-28 08:08:10 -04:00
|
|
|
= render 'shared/milestones/delete_button'
|
2019-11-07 16:06:14 -05:00
|
|
|
|
2020-11-04 13:08:42 -05:00
|
|
|
%button.btn.gl-button.btn-default.btn-grouped.float-right.d-block.d-sm-none.js-sidebar-toggle{ type: 'button' }
|
2020-06-22 14:08:47 -04:00
|
|
|
= sprite_icon('chevron-double-lg-left')
|