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

24 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-08-02 16:38:56 +08:00
<%= render :partial => "pull_requests/pull_request_container" %>
2016-08-02 10:03:42 +08:00
<ul id="mergeBanner" class="project-merge-banner">
2016-08-03 16:54:37 +08:00
<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>
2016-08-09 10:29:18 +08:00
<li><%= link_to "已关闭<span class='project-number-dot'>#{@requests_closed_count}</span>".html_safe, project_pull_requests_path(:type => "3"), :remote => true %></li>
2016-08-03 16:54:37 +08:00
2016-08-03 11:07:49 +08:00
<%= link_to "创建Pull Request", new_project_pull_request_path, :class => "BlueCirBtn fr ml10 mt10", :style => "width:110px;" %>
2016-08-02 10:03:42 +08:00
<div class="cl"></div>
2016-08-01 16:57:55 +08:00
</ul>
2016-08-02 10:03:42 +08:00
<div class="cl"></div>
2016-08-03 16:54:37 +08:00
<ul class="project-merge-content" id="pull_requests_list">
<%= render "pull_requests/pull_requests_list" %>
2016-08-02 10:03:42 +08:00
</ul>
2016-08-01 16:57:55 +08:00
2016-08-09 15:28:06 +08:00
2016-08-01 16:57:55 +08:00
<script>
2016-08-02 10:03:42 +08:00
$("#mergeBanner").parent().css("width","730px");
$(".project-merge-banner li").click(function(){
$(".project-merge-banner li").removeClass("active");
$(this).addClass("active");
});
2016-08-01 16:57:55 +08:00
</script>