<div class="new-merge-row b_grey fontGrey2"><span class="ml10"> 根据最近提交时间排列</span></div>
<% if !@commits.blank? && @type == "2" %>
    <% @commits.each do |commit| %>
        <div class="new-merge-wrap">
          <div class="merge-commit-time">
            <img width="16" class="ui-datepicker-trigger mr15" style="cursor:default; margin-top:3px; margin-left:0;" /><span class="fontGrey3"><%= format_date(commit.created_at) %></span>
            <!--<p class="mt10 fontGrey2">1次提交</p>-->
            <p class="mt10 fontGrey2"><%= link_to commit.author_name, user_path(get_user_by_mail(commit.author_email)), :class => "link-blue" %> 创建于<%= time_tag(commit.created_at) %>前</p>
          </div>
          <div class="merge-commit-detail">
            <span class="fontGrey3 fb"><%= commit.title %></span>

          </div>
          <div class="merge-commit-code">
      <span class="fontGrey3">
        <%= link_to truncate(commit.short_id, :length => 20), {:controller => 'repositories', :action => 'commit_diff', :id => @project.id, :changeset => commit.id}, :target => "_blank" %>
      </span>
          </div>
          <div class="cl"></div>
        </div>
    <% end %>
    <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 => @is_remote, :flag => true, :is_new => true%>
        </ul>
        <div class="cl"></div>
      </div>
    </div>
<% end %>


