2012-09-26 18:09:29 +01:00
|
|
|
- if can?(:merge, @pull) && @pull.can_merging?
|
2012-07-12 15:15:28 +01:00
|
|
|
%br
|
|
|
|
=form_for PullRequest.new, :url => merge_project_pull_request_path(@project, @pull), :html => { :method => :put, :class => :form } do |f|
|
|
|
|
=f.submit t 'projects.pull_requests.ready'
|
|
|
|
-else
|
|
|
|
.flash
|
|
|
|
%div{:class => @pull.ready? ? 'notice' : 'alert'}
|
|
|
|
=pull_status @pull
|
2013-07-11 11:34:44 +01:00
|
|
|
wwwww
|
2012-09-26 18:09:29 +01:00
|
|
|
-if can? :update, @pull
|
2012-07-16 09:39:33 +01:00
|
|
|
-if action = @pull.can_close? ? 'close' : ('reopen' if @pull.can_reopen?)
|
2012-07-12 15:15:28 +01:00
|
|
|
%br
|
|
|
|
=form_for :pull, :url => [@project, @pull], :html => { :id => 'do_pull_action',:method => :put, :class => :form } do |f|
|
2012-07-16 09:39:33 +01:00
|
|
|
=hidden_field_tag "pull_request_action", action
|
2012-07-12 15:15:28 +01:00
|
|
|
=f.submit t ".#{action}"
|