51 lines
2.6 KiB
Plaintext
51 lines
2.6 KiB
Plaintext
<div class="new_roadmap_conbox mb10" >
|
|
<div class=" clear">
|
|
<ul class="reply-container-branch fl" >
|
|
<%= render :partial => 'navigation' %>
|
|
</ul>
|
|
</div>
|
|
<% @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_user_mail(commit.author_email, "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" %>
|
|
<% unless get_commit_issues(commit.short_id, @project.id, 0).nil? %>
|
|
<% get_commit_issues(commit.short_id, @project.id, 0).each do |issue_id| %>
|
|
<div class="btn-commit-issue btn-blue mb5 mr5 fr">
|
|
<% if issue_id == "more" %>
|
|
<%= link_to "更多", {:controller => 'repositories', :action => 'commit_diff', :id => @project.id, :changeset => commit.id}, :target => "_blank", :class => "commit_id_value mr5" %>
|
|
<% else %>
|
|
<%= link_to "##{issue_id}", issue_path(issue_id), :target => "_blank", :class => "commit_id_value mr5" %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</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 @commits_pages, @commits_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true %>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<div class="cl"></div>
|
|
|
|
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
|
<% html_title(l(:label_change_plural)) -%>
|
|
</div>
|