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

36 lines
1.8 KiB
Plaintext
Raw Normal View History

2016-08-02 15:44:25 +08:00
<%= render "pull_request_container" %>
2016-08-02 10:03:42 +08:00
<ul id="mergeBanner" class="project-merge-banner">
2016-08-01 16:57:55 +08:00
<li><a href="javascript:void(0);">打开<span class="project-number-dot">1</span></a></li>
<li><a href="javascript:void(0);">合并<span class="project-number-dot">1</span></a></li>
<li><a href="javascript:void(0);">关闭<span class="project-number-dot">1</span></a></li>
2016-08-02 10:03:42 +08:00
<li class="active"><a href="javascript:void(0);">全部<span class="project-number-dot">3</span></a></li>
2016-08-02 16:10:25 +08:00
<a href="javascript:void(0);" class="BlueCirBtn fr ml10 mt10">新建请求</a>
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>
<ul class="project-merge-content">
2016-08-02 15:44:25 +08:00
<% if @requests.nil? %>
<div class="no-merge-content">没有可显示的请求</div>
<% else %>
<% @requests.each do |request| %>
<li>
<% request %>
2016-08-02 16:06:51 +08:00
<%=link_to request.title, project_pull_request_path(request.id, :project_id => @project.id), :class => "linkGrey3 fb fl"%>
<!--<a href="javascript:void(0);" class="fr fontGrey2 fb"><img src="/images/comments.png" class="mr5" width="15" />0</a><span class="fr mr15 fb fontGrey2">关闭</span>-->
2016-08-02 15:44:25 +08:00
<div class="cl mb5"></div>
2016-08-02 16:06:51 +08:00
<span class="fontGrey2">#5 · <%= link_to request.author.try(:username), user_path(request.author), :class => "link-blue" %> 创建于<%= time_tag(request.created_at) %></span>
2016-08-02 15:44:25 +08:00
<span class="fr fontGrey2"><%= time_tag(request.updated_at) %>更新</span>
<div class="cl"></div>
</li>
<% end %>
<% end %>
2016-08-02 10:03:42 +08:00
</ul>
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>