25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
<%= render :partial => "pull_requests/pull_request_container" %>
|
|
<ul id="mergeBanner" class="project-merge-banner">
|
|
<li class="active"><%= link_to "待处理<span class='project-number-dot'>#{@requests_opened_count}</span>".html_safe, project_pull_requests_path(:type => "1"), :remote => true %></li>
|
|
<li><%= link_to "已处理<span class='project-number-dot'>#{@requests_merged_count}</span>".html_safe, project_pull_requests_path(:type => "2"), :remote => true %></li>
|
|
<li><%= link_to "已关闭<span class='project-number-dot'>#{@requests_closed_count}</span>".html_safe, project_pull_requests_path(:type => "3"), :remote => true %></li>
|
|
<% if allow_pull_request(@project) && User.current.member_of?(@project) %>
|
|
<%= link_to "创建Pull Request", new_project_pull_request_path, :class => "BlueCirBtn fr ml10 mt10", :style => "width:110px;" %>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
|
|
<ul class="project-merge-content" id="pull_requests_list">
|
|
<%= render "pull_requests/pull_requests_list" %>
|
|
</ul>
|
|
|
|
|
|
<script>
|
|
$("#mergeBanner").parent().css("width","730px");
|
|
|
|
$(".project-merge-banner li").click(function(){
|
|
$(".project-merge-banner li").removeClass("active");
|
|
$(this).addClass("active");
|
|
});
|
|
</script> |