|
|
@ -7,13 +7,13 @@
|
|
|
|
<span class="mr10 open-status"><%= get_state(@request.state) %></span><span class="mr10">合并请求</span> 由 <%= link_to @request.author.try(:username), user_path(get_user_by_login_and(@request.author.try(:username))), :class => "link-blue" %> 于 <%= time_tag(@request.created_at) %> 前提交 · 最后编辑时间 <%= time_tag(@request.updated_at) %> 前
|
|
|
|
<span class="mr10 open-status"><%= get_state(@request.state) %></span><span class="mr10">合并请求</span> 由 <%= link_to @request.author.try(:username), user_path(get_user_by_login_and(@request.author.try(:username))), :class => "link-blue" %> 于 <%= time_tag(@request.created_at) %> 前提交 · 最后编辑时间 <%= time_tag(@request.updated_at) %> 前
|
|
|
|
<% unless @request.state == "merged" %>
|
|
|
|
<% 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 => "BlueCirBtn fr" %>
|
|
|
|
<%= 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 => "BlueCirBtn fr" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="new-merge-row b_grey"><strong><%= @request.title %></strong><p class="mt10"><%= @request.description %></p></div>
|
|
|
|
<div class="new-merge-row b_grey"><strong><%= @request.title %></strong><p class="mt10"><%= @request.description %></p></div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mt10 mb15">
|
|
|
|
<div class="mt10 mb15">
|
|
|
|
请求将 <span class="fontGrey3 fb"><%= @request.source_branch %></span> 合并至 <span class="fontGrey3 fb"><%= @request.target_branch %></span>
|
|
|
|
请求将 <span class="fontGrey3 fb"><%= @request.source_branch %></span> 合并至 <span class="fontGrey3 fb"><%= @request.target_branch %></span>
|
|
|
|
|
|
|
|
|
|
|
|
<% if @commits_count == 0 && @changes_count == 0 %>
|
|
|
|
<% if @commits_count == 0 && @changes_count == 0 %>
|
|
|
|
<div class="merge-commit-option mt15">
|
|
|
|
<div class="merge-commit-option mt15">
|
|
|
|
<span class="fontGrey3 fb" style="font-size:13px;"><img src="/images/warning.png" width="16" class="mr5 mt2 fl"><%= @request.source_branch %>没有新内容可以合并至<%= @request.target_branch %></span><br />
|
|
|
|
<span class="fontGrey3 fb" style="font-size:13px;"><img src="/images/warning.png" width="16" class="mr5 mt2 fl"><%= @request.source_branch %>没有新内容可以合并至<%= @request.target_branch %></span><br />
|
|
|
@ -33,28 +33,15 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="merge-record" style="border-top:1px solid #ddd;">
|
|
|
|
<ul class="merge-record" style="border-top:1px solid #ddd;">
|
|
|
|
<li><%= link_to "留言<span class='project-number-dot'>#{@commits_count}</span>".html_safe, :class => "active" %></li>
|
|
|
|
<li><%= link_to "留言<span class='project-number-dot'>#{@comments_count}</span>".html_safe, pull_request_comments_project_pull_request_path(@request.id, :project_id => @project.id), :remote => true, :class => "active" %></li>
|
|
|
|
<li><%= link_to "提交<span class='project-number-dot'>#{@commits_count}</span>".html_safe, pull_request_commits_project_pull_request_path(@request.id, :project_id => @project.id, :type => 1), :remote => true %></li>
|
|
|
|
<li><%= link_to "提交<span class='project-number-dot'>#{@commits_count}</span>".html_safe, pull_request_commits_project_pull_request_path(@request.id, :project_id => @project.id), :remote => true %></li>
|
|
|
|
<li><%= link_to "改动<span class='project-number-dot'>#{@changes_count}</span>".html_safe, pull_request_changes_project_pull_request_path(@request.id, :project_id => @project.id, :type => 2), :remote => true %></li>
|
|
|
|
<li><%= link_to "改动<span class='project-number-dot'>#{@changes_count}</span>".html_safe, pull_request_changes_project_pull_request_path(@request.id, :project_id => @project.id), :remote => true %></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<div id="merge_record_0">
|
|
|
|
<div id="merge_record_0">
|
|
|
|
<div class="merge-discussion-content">
|
|
|
|
<%= render :partial => "pull_requests/pull_request_comments" %>
|
|
|
|
<a href="javascript:void(0);" class="link-blue mr15 fl">Hjqreturn</a><span class="fl fontGrey2">20小时前</span>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
<div class="merge-discussion-detail">回复内容</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="merge-discussion-content merge-discussion-automatic">
|
|
|
|
|
|
|
|
<a href="javascript:void(0);" class="link-blue mr15 fl">Hjqreturn</a><span class="fl fontGrey2">20小时前</span>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
<div class="merge-discussion-detail">已关闭请求/重新审核请求</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="merge-discussion-input">
|
|
|
|
|
|
|
|
<textarea></textarea>
|
|
|
|
|
|
|
|
<a href="javascript:void(0);" class="BlueCirBtn">提 交</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="merge_record_1" class="undis">
|
|
|
|
<div id="merge_record_1" class="undis">
|
|
|
|
<%= render :partial => "pull_requests/pull_request_commits" %>
|
|
|
|
<%= render :partial => "pull_requests/pull_request_commits" %>
|
|
|
|