|
|
|
@ -33,7 +33,11 @@
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if is_project_manager?(User.current.id, @project.id) %>
|
|
|
|
|
<div class="merge-commit-option mt15">
|
|
|
|
|
<%= link_to "接受请求", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "BlueCirBtn", :remote => true %>
|
|
|
|
|
<% if @request.state == "closed" %>
|
|
|
|
|
该请求已被关闭
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to "接受请求", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "BlueCirBtn", :remote => true %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|