2019-12-26 22:10:19 +05:30
|
|
|
.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)
|
2021-01-29 00:20:46 +05:30
|
|
|
= link_to _('Edit'), edit_milestone_path(milestone), class: 'btn gl-button btn-grouped'
|
2019-12-26 22:10:19 +05:30
|
|
|
|
|
|
|
- if milestone.project_milestone? && milestone.project.group
|
2021-01-29 00:20:46 +05:30
|
|
|
%button.js-promote-project-milestone-button.btn.gl-button.btn-grouped{ data: { toggle: 'modal',
|
2019-12-26 22:10:19 +05:30
|
|
|
target: '#promote-milestone-modal',
|
|
|
|
milestone_title: milestone.title,
|
|
|
|
group_name: milestone.project.group.name,
|
|
|
|
url: promote_project_milestone_path(milestone.project, milestone),
|
|
|
|
container: 'body' },
|
|
|
|
disabled: true,
|
|
|
|
type: 'button' }
|
|
|
|
= _('Promote')
|
|
|
|
#promote-milestone-modal
|
|
|
|
|
|
|
|
- if milestone.active?
|
2021-01-29 00:20:46 +05:30
|
|
|
= link_to _('Close milestone'), update_milestone_path(milestone, { state_event: :close }), method: :put, class: 'btn gl-button btn-grouped btn-close'
|
2019-12-26 22:10:19 +05:30
|
|
|
- else
|
2021-02-22 17:27:13 +05:30
|
|
|
= link_to _('Reopen milestone'), update_milestone_path(milestone, { state_event: :activate }), method: :put, class: 'btn gl-button btn-grouped'
|
2019-12-26 22:10:19 +05:30
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
= render 'shared/milestones/delete_button'
|
2019-12-26 22:10:19 +05:30
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
%button.btn.gl-button.btn-default.btn-grouped.float-right.d-block.d-sm-none.js-sidebar-toggle{ type: 'button' }
|
2020-07-28 23:09:34 +05:30
|
|
|
= sprite_icon('chevron-double-lg-left')
|