socialforge/app/views/pull_requests/_pull_request_commits.html.erb

19 lines
944 B
Plaintext
Raw Normal View History

2016-08-03 14:43:27 +08:00
<% @commits.each do |commit| %>
2016-08-03 15:16:28 +08:00
<div class="new-merge-wrap">
2016-08-03 14:43:27 +08:00
<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>
2016-08-03 15:16:28 +08:00
</div>
2016-08-03 14:43:27 +08:00
<% end %>