<%= 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 %>

由 <%= link_to_user_login(@request.author.try(:username), "linkBlue2") %>于 <%= format_time(@request.created_at) %> 创建

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

<%= find_gitlab_project(@request.source_project_id)+"/"+@request.source_branch %>合并到<%= find_gitlab_project(@request.target_project_id)+"/"+@request.target_branch %>

<% if @request.state == "merged" %>
改动已合并至 <%= @request.target_branch %> 分支
<% else %>
<%= render "show_container" %>
<% end %>
<% 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" %>