Commit d7d11727b7d693604f1bc1ecd1f2bb3e9e82453e
1 parent
248b2554
Exists in
master
and in
4 other branches
Ability to close milestone from milestones -> index
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
app/views/milestones/_milestone.html.haml
... | ... | @@ -4,6 +4,8 @@ |
4 | 4 | = link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do |
5 | 5 | %i.icon-edit |
6 | 6 | Edit |
7 | + - if milestone.can_be_closed? | |
8 | + = link_to 'Close', project_milestone_path(@project, milestone, milestone: {state_event: :close }), method: :put, remote: true, class: "btn btn-small btn-remove" | |
7 | 9 | %h4 |
8 | 10 | = link_to_gfm truncate(milestone.title, length: 100), project_milestone_path(milestone.project, milestone) |
9 | 11 | - if milestone.expired? and not milestone.closed? | ... | ... |