socialforge/app/views/pull_requests/_show_container.html.erb

16 lines
753 B
Plaintext

<% if @request.state == "closed" %>
<div class="alert alert-orange mb15 ">
该请求已被关闭
</div>
<% elsif @commits_count == 0 %>
<div class="alert alert-orange mb15 ">
项目分支 <%= @request.source_branch %> 和 <%= @request.target_branch %> 似乎没有差异,请将新改动提交至源分支或者切换到其它目标分支
</div>
<% else %>
<% if is_project_manager?(User.current.id, @project.id) %>
<div class="alert alert-orange mb15 ">
在管理员接受后,将由系统自动合并。<%= link_to "接受", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "linkBlue2", :remote => true %></a>
</div>
<% end %>
<% end %>