2016-10-26 15:40:44 +08:00
|
|
|
<% @commits.chunk { |c| format_date(c.created_at).to_date }.each do |day, commits| %>
|
|
|
|
<div class="pullreques_pullbox">
|
|
|
|
<div class="pullreques_pull_top clear">
|
|
|
|
<p class="fl c_grey ml15"><%= day %></p>
|
|
|
|
<p class="fr c_green mr15"><%= commits.count %>个提交</p>
|
|
|
|
</div>
|
|
|
|
<ul class="pullreques_pull_list">
|
|
|
|
<% commits.each do |commit| %>
|
|
|
|
<li class="clear">
|
|
|
|
<span class="fl c_grey ml15 "><%= time_tag(commit.created_at) %>前</span>
|
2016-12-15 14:36:08 +08:00
|
|
|
<%= link_to_user_mail(commit.author_email, "pullreques_pull_name fl ml10") %>
|
2016-10-26 15:40:44 +08:00
|
|
|
<p class="pullreques_pull_txt ml10 fl"><%= commit.title %></p>
|
|
|
|
<%= link_to truncate(commit.short_id, :length => 20), {:controller => 'repositories', :action => 'commit_diff', :id => @project.id, :changeset => commit.id}, :target => "_blank", :class => "fr mr15 c_grey" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-12-02 17:52:02 +08:00
|
|
|
<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 => true, :flag => true, :is_new => true %>
|
|
|
|
</ul>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2016-10-26 15:40:44 +08:00
|
|
|
|
|
|
|
|
2016-08-09 16:11:49 +08:00
|
|
|
|