33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
<% if @forked_count > 0 %>
|
|
<div class="pro_new_info mb10">
|
|
<h2 class="clear">成员<span class="fr pro_new_font mr15" >本页面展示Fork了 <%= link_to @project.owner.try(:show_name), user_path(@project.owner) %>/<%= link_to @project.name, project_path(@project) %> 的用户</span></h2>
|
|
<ul class="clear pro_new_users_box">
|
|
<% @forked_projects.each do |project| %>
|
|
<li class="clear">
|
|
<%= link_to image_tag(url_to_avatar(project.owner), :width => "50", :height => "50"), user_path(project.owner), :alt => "用户头像", :class => "pro_new_users fl mr5" %>
|
|
<div class="fl mt5 clear">
|
|
<%= link_to project.owner.try(:show_name), user_path(project.owner), :class => "pro_new_users mt5 fl" %>
|
|
<span class="ml5 mr5 mt5 fl"> / </span>
|
|
<%= link_to project.name, project_path(project), :class => "pro_new_users mt5 fl" %>
|
|
<br/>
|
|
<span class=" c_grey mt3"><%=h time_tag(project.created_on) %></span>
|
|
</div>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<div style="text-align:center;">
|
|
<div class="pages" style="width:auto; display:inline-block;">
|
|
<ul id="homework_pository_ref_pages">
|
|
<%= pagination_links_full @forked_pages, @forked_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<% else %>
|
|
<div class="mb10">
|
|
<%= render :partial => "projects/no_data" %>
|
|
</div>
|
|
<% end %>
|