|
|
|
@ -16,15 +16,31 @@
|
|
|
|
|
<% show_diff = revisions.size > 1 %>
|
|
|
|
|
<% line_num = 1 %>
|
|
|
|
|
<% revisions.each do |changeset| %>
|
|
|
|
|
<tr class="changeset <%= cycle 'odd', 'even' %>">
|
|
|
|
|
|
|
|
|
|
<td class="id"><%= h truncate(changeset.id.to_s, :length => 20) %></td>
|
|
|
|
|
<!--<td class="checkbox"><%#= radio_button_tag('rev_to', changeset.id, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('#cb-#{line_num}').attr('checked')) {$('#cb-#{line_num-1}').attr('checked',true);}") if show_diff && (line_num > 1) %></td>-->
|
|
|
|
|
<td class="committed_on"><%= format_time(changeset.created_at) %></td>
|
|
|
|
|
<td class="author"><%= h truncate(changeset.author_name.to_s, :length => 30) %></td>
|
|
|
|
|
<td class="comments"><%= textilizable(truncate_at_line_break(changeset.message)) %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% line_num += 1 %>
|
|
|
|
|
<div class="col-md-10 col-sm-12">
|
|
|
|
|
<ul class="bordered-list">
|
|
|
|
|
<li class="commit js-toggle-container">
|
|
|
|
|
<div class="commit-row-title">
|
|
|
|
|
<strong class="str-truncated">
|
|
|
|
|
<a class="commit-row-message"><%= textilizable(truncate_at_line_break(changeset.message)) %></a>
|
|
|
|
|
</strong>
|
|
|
|
|
<div class="pull-right" title="修订号">
|
|
|
|
|
<%= h truncate(changeset.short_id.to_s, :length => 20) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="notes_count">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="commit-row-info">
|
|
|
|
|
<a class="commit-author-link has_tooltip"> <span class="commit-author-name">
|
|
|
|
|
<%= image_tag(url_to_avatar(user_commit_rep(changeset.author_email)), :width => "20", :height => "20", :class => "fl portraitRadius mt2 ml4 mr5") %>
|
|
|
|
|
<%= link_to user_commit_rep(changeset.author_email), user_path(user_commit_rep(changeset.author_email)), :length => 30 %></span></a>
|
|
|
|
|
提交于
|
|
|
|
|
<div class="committed_ago">
|
|
|
|
|
<time class="time_ago js-timeago" title="<%= changeset.created_at %>"><%= time_tag(changeset.created_at) %> 前</time>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|