2016-10-14 17:23:51 +08:00
|
|
|
<% if @allow_to_pull_request %>
|
2016-10-21 11:19:56 +08:00
|
|
|
<!--PullReques列表开始-->
|
|
|
|
<div class="new_roadmap_conbox " >
|
|
|
|
<div class="new_roadmap_navbox clear">
|
|
|
|
<ul class="new_roadmap_nav fl" >
|
2016-10-21 14:18:34 +08:00
|
|
|
<li class="new_roadmap_nav_hover"><%= link_to "待处理<span class='new_roadmap_nav_taghover ml5'>#{@requests_opened_count}</span>".html_safe, project_pull_requests_path(:type => "1"), :remote => true, :class => "new_roadmap_type_nomal" %></li>
|
|
|
|
<li><%= link_to "已处理<span class='new_roadmap_nav_tagnomal ml5'>#{@requests_merged_count}</span>".html_safe, project_pull_requests_path(:type => "2"), :remote => true, :class => "new_roadmap_type_nomal" %></li>
|
|
|
|
<li><%= link_to "已关闭<span class='new_roadmap_nav_tagnomal ml5'>#{@requests_closed_count}</span>".html_safe, project_pull_requests_path(:type => "3"), :remote => true, :class => "new_roadmap_type_nomal" %></li>
|
2016-10-21 11:19:56 +08:00
|
|
|
</ul>
|
2016-10-21 14:18:34 +08:00
|
|
|
<% if allow_pull_request(@project) && User.current.member_of?(@project) %>
|
|
|
|
<%= link_to "创建Pull Request", new_project_pull_request_path, :class => "btn btn-green fr mr15 mt10" %>
|
|
|
|
<% end %>
|
2016-10-21 11:19:56 +08:00
|
|
|
</div>
|
2016-10-21 14:18:34 +08:00
|
|
|
<!--<div class="pullreques_category clear ">-->
|
|
|
|
<!--<a href="javascript:void(0);" class="sortdownbtn mt10 fr mr15"></a>-->
|
|
|
|
<!--<a href="javascript:void(0);" class="sy_cgrey fr">更新时间</a>-->
|
|
|
|
<!--<a href="javascript:void(0);" class="sortupbtn mt10 fr"></a>-->
|
|
|
|
<!--<a href="javascript:void(0);" class="sy_cgrey fr">创建时间 </a>-->
|
|
|
|
<!--</div>-->
|
|
|
|
<div id="pull_requests_list">
|
|
|
|
<%= render "pull_requests/pull_requests_list" %>
|
|
|
|
|
2016-10-21 11:19:56 +08:00
|
|
|
<div class=" pages ">
|
|
|
|
<a href="javascript:void(0);" class="pages-big" >上一页</a>
|
|
|
|
<a href="javascript:void(0);" class="active " >1</a>
|
|
|
|
<a href="javascript:void(0);" >2</a>
|
|
|
|
<a href="javascript:void(0);" >3</a>
|
|
|
|
<a href="javascript:void(0);" >...</a>
|
|
|
|
<a href="javascript:void(0);" >31</a>
|
|
|
|
<a href="javascript:void(0);" class="pages-big" >下一页</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--翻页 end-->
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--new_roadmap_content_1 end-->
|
|
|
|
</div><!--new_roadmap end-->
|
|
|
|
<!--PullReques列表结束-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-14 17:23:51 +08:00
|
|
|
<%#= 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>
|
2016-08-03 16:54:37 +08:00
|
|
|
|
2016-10-14 17:23:51 +08:00
|
|
|
<ul class="project-merge-content" id="pull_requests_list">
|
|
|
|
<%= render "pull_requests/pull_requests_list" %>
|
|
|
|
</ul>
|
2016-08-01 16:57:55 +08:00
|
|
|
|
2016-08-09 15:28:06 +08:00
|
|
|
|
2016-10-14 17:23:51 +08:00
|
|
|
<script>
|
2016-10-21 11:19:56 +08:00
|
|
|
// $("#mergeBanner").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
2016-10-21 14:18:34 +08:00
|
|
|
// $("#mergeBanner").parent().before("<div class='homepageRightBanner mb10'><span class='f16 fontGrey3'>Pull Request</span></div>");
|
2016-10-14 17:23:51 +08:00
|
|
|
|
2016-10-21 14:18:34 +08:00
|
|
|
$(".new_roadmap_nav li").click(function(){
|
|
|
|
$(".new_roadmap_nav li").removeClass("new_roadmap_nav_hover");
|
2016-10-21 11:19:56 +08:00
|
|
|
$(this).addClass("new_roadmap_nav_hover");
|
2016-10-14 17:23:51 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<% else %>
|
|
|
|
<p>不符合条件,内容待补充</p>
|
|
|
|
<% end %>
|
2016-08-02 10:03:42 +08:00
|
|
|
|