17 lines
906 B
Plaintext
17 lines
906 B
Plaintext
|
<% @commits.each do |commit| %>
|
||
|
<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>-->
|
||
|
</div>
|
||
|
<div class="merge-commit-detail">
|
||
|
<span class="fontGrey3 fb"><%= commit.title %></span>
|
||
|
<p class="mt10 fontGrey2"><%= link_to commit.author_name, user_path(get_user_by_mail(commit.author_email)), :class => "link-blue" %>创建于24小时前</p>
|
||
|
</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>
|
||
|
<% end %>
|