socialforge/app/views/pull_requests/index.html.erb

51 lines
2.8 KiB
Plaintext
Raw Normal View History

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 mb10" >
2016-10-21 11:19:56 +08:00
<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>-->
2016-10-21 14:18:34 +08:00
<!--</div>-->
<div id="pull_requests_list">
<%= render "pull_requests/pull_requests_list" %>
<div style="text-align:center;">
<div class="pages" style="width:auto; display:inline-block;">
<ul id="homework_pository_ref_pages">
<%= pagination_links_full @pages, @count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true%>
</ul>
<div class="cl"></div>
</div>
</div>
2016-10-21 11:19:56 +08:00
<div class="cl"></div>
</div>
</div>
2016-10-14 17:23:51 +08:00
<script>
// $("#mergeBanner").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
// $("#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 %>
2016-10-26 13:45:15 +08:00
<div class="new_roadmap_conbox mb10" >
<div class="new_roadmap_navbox clear">
版本库中还没有提交代码,请先提交代码
</div>
</div>
2016-10-14 17:23:51 +08:00
<% end %>
2016-08-02 10:03:42 +08:00