<%= render :partial => "pull_requests/error_message" %>
<%= link_to "返回合并请求列表".html_safe, project_pull_requests_path(@project), :class => "fl linkBlue2 mt3" %> |

<%= @request.title %>

<% if User.current.login == @request.author.try(:username) || is_project_manager?(User.current.id, @project.id) %> <% unless @request.state == "merged" %> <%= link_to "#{@request.state == 'closed' ? '重新打开' : '关闭'}", update_pull_request_project_pull_request_path(@request.id, :project_id => @project.id, :state => @request.state =="closed" ? "reopen" : "close"), :class => "fr c_grey" %> <% end %> <% end %> 编辑

<%= @request.description %>

<%= @request.author.try(:username) %>于 <%= format_time(@request.created_at) %> 创建

最近更新:<%= format_time(@request.updated_at) %>

<%= @request.source_branch %>合并到<%= @request.target_branch %>

在管理员接受后,将由系统自动合并。<%= link_to "接受", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "linkBlue2", :remote => true %>接受
<% if @type == nil || @type == "1" %>
<%= render :partial => "pull_requests/pull_request_comments" %>
<% end %>
<%= render :partial => "pull_requests/pull_request_commits" %>
<%= render :partial => "pull_requests/pull_request_changes" %>