-<% if @commits_count == 0 && @changes_count == 0 %>
-
<%= @request.source_branch %>没有新内容可以合并至<%= @request.target_branch %>
-
请将新改动提交至源分支或者切换到其它目标分支
-<% else %>
- <% if @request.state == "merged" %>
-
Hjqreturn于两小时前合并
-
改动已合并至<%= @request.target_branch %>
+
+ 请求将
<%= @request.source_branch %> 合并至
<%= @request.target_branch %>
+
+ <% if @commits_count == 0 && @changes_count == 0 %>
+
+
<%= @request.source_branch %>没有新内容可以合并至<%= @request.target_branch %>
+
请将新改动提交至源分支或者切换到其它目标分支
+
+
<% else %>
+ <% if @request.state == "merged" %>
+
+ <% else %>
<% if is_project_manager?(User.current.id, @project.id) %>
- <%= link_to "接受请求", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "BlueCirBtn", :remote => true %>
+
+ <%= link_to "接受请求", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "BlueCirBtn", :remote => true %>
+
<% end %>
+ <% end %>
+
+
+ <%= render :partial => "pull_requests/pull_request_commits" %>
+
+ <%= render :partial => "pull_requests/pull_request_changes" %>
+