rosa-build/app/views/projects/pull_requests/_status.html.haml

16 lines
664 B
Plaintext
Raw Normal View History

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
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}"