Skip to content
Snippets Groups Projects
Commit 9a00bbda authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Show reopen milestone button if milestone was closed

parent 0fcd89e3
No related branches found
No related tags found
1 merge request!5081fixed command to update init script
Loading
Loading
@@ -8,7 +8,10 @@
= link_to edit_project_milestone_path(@project, @milestone), class: "btn grouped" do
%i.icon-edit
Edit
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {state_event: :close }), method: :put, class: "btn btn-remove"
- 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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment