22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
<% @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>
|
|
<%= link_to get_user_by_mail(commit.author_email).show_name, user_path(get_user_by_mail(commit.author_email)), :target => "_blank", :class => "pullreques_pull_name fl ml10" %>
|
|
<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 %>
|
|
|
|
|
|
|