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

15 lines
659 B
Plaintext
Raw Normal View History

2012-08-07 14:21:13 +01:00
- if can?(:merge, @issue) && @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
-if can? :update, @pull.issue
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}"