=link_to'Reopen',project_issue_path(issue.project,issue,:issue=>{:closed=>false},:status_only=>true),:method=>:put,:class=>"btn small padded",:remote=>true
-else
=link_to'Resolve',project_issue_path(issue.project,issue,:issue=>{:closed=>true},:status_only=>true),:method=>:put,:class=>"success btn small padded",:remote=>true
=link_toedit_project_issue_path(issue.project,issue),:class=>"btn small edit-issue-link",:remote=>truedo
=link_toedit_project_issue_path(issue.project,issue),:class=>"btn small edit-issue-link",:remote=>truedo
=link_to'Close',project_merge_request_path(@project,@merge_request,:merge_request=>{:closed=>true},:status_only=>true),:method=>:put,:class=>"btn small padded",:title=>"Close merge request"
=link_toedit_project_merge_request_path(@project,@merge_request),:class=>"btn small padded"do
=link_toedit_project_merge_request_path(@project,@merge_request),:class=>"btn small padded"do
%i.icon-edit
Edit
...
...
@@ -19,7 +19,7 @@
=render"merge_requests/how_to_merge"
.back_link
=link_toproject_merge_requests_path(@project)do
=link_toproject_merge_requests_path(@project)do
← To merge requests
.main_box
...
...
@@ -27,17 +27,17 @@
%h4
-if@merge_request.closed
.alert-message.error.status_info Closed
-else
-else
.alert-message.success.status_info Open
=@merge_request.title
.middle_box_content
%div
%cite.cgray Created at #{@merge_request.created_at.stamp("Aug 21, 2011")} by
%cite.cgray Created at #{@merge_request.created_at.stamp("Aug 21, 2011")} by
=link_to"Accept Merge Request",automerge_project_merge_request_path(@project,@merge_request),:class=>"btn small info accept_merge_request",:remote=>true
You can accept this request automatically. If you still want to do it manually - #{link_to"click here","#",:class=>"how_to_merge_link vlink",:title=>"How To Merge"} for instructions