Commit 2a638c42 authored by Constance Okoghenun's avatar Constance Okoghenun

Added 'Reopen Milestone' button to milestones list for closed milestones

parent 7e35188e
......@@ -33,6 +33,8 @@
= sprite_icon('level-up', size: 12)
= link_to 'Close Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-sm btn-close btn-grouped"
- unless milestone.active?
= link_to 'Reopen Milestone', project_milestone_path(@project, milestone, {state_event: :activate }), method: :put, class: "btn btn-grouped btn-reopen"
- if milestone.is_a?(GlobalMilestone) || milestone.group_milestone?
.row
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment