diff options
author | Mark Fletcher <mark@gitlab.com> | 2019-03-26 16:47:54 +0300 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2019-03-26 19:50:14 +0300 |
commit | d97d35d3da48493189c3c0017198b19d3f91cf9a (patch) | |
tree | 2426b2cc2e2ea2b139560179ed473dfbe825cf9e /app/views/shared | |
parent | 30479246ed4ed2cdbadb4d359a38e592ffef2fe5 (diff) |
Fix bug when reopening milestone from index page
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/milestones/_milestone.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/milestones/_milestone.html.haml b/app/views/shared/milestones/_milestone.html.haml index e75f0a184ea..e99aa3f1ee4 100644 --- a/app/views/shared/milestones/_milestone.html.haml +++ b/app/views/shared/milestones/_milestone.html.haml @@ -52,7 +52,7 @@ = 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" + = link_to 'Reopen Milestone', project_milestone_path(@project, milestone, milestone: {state_event: :activate }), method: :put, class: "btn btn-grouped btn-reopen" - if @group - if can?(current_user, :admin_milestone, @group) - if milestone.closed? |