Commit 9a00bbda authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show reopen milestone button if milestone was closed

parent 0fcd89e3
......@@ -8,7 +8,10 @@
= link_to edit_project_milestone_path(@project, @milestone), class: "btn grouped" do
%i.icon-edit
Edit
- if @milestone.active?
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-remove"
- else
= link_to 'Reopen Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :activate }), method: :put, class: "btn"
- if @milestone.issues.any? && @milestone.can_be_closed?
.alert.alert-success
......
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