socialforge/app/views/repositories/_revisions.html.erb

49 lines
1.9 KiB
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<%= form_tag(
2015-06-12 16:48:43 +08:00
{:controller => 'repositories', :action => 'diff', :id => project,
:repository_id => @repository.identifier_param, :path => to_path_param(path)},
2015-11-27 15:21:58 +08:00
:method => :get
2015-06-12 16:48:43 +08:00
) do %>
<table class="list changesets">
2015-10-29 17:28:23 +08:00
<!--<thead><tr>-->
2015-11-27 15:21:58 +08:00
<!--<th>#</th>-->
<!--<th></th>-->
<!--<th></th>-->
<!--<th><%= l(:label_date) %></th>-->
<!--<th><%= l(:field_author) %></th>-->
<!--<th><%= l(:field_comments) %></th>-->
2015-10-29 17:28:23 +08:00
<!--</tr></thead>-->
2015-06-12 16:48:43 +08:00
<tbody>
2015-11-18 16:11:51 +08:00
2015-06-12 16:48:43 +08:00
<% show_diff = revisions.size > 1 %>
<% line_num = 1 %>
<% revisions.each do |changeset| %>
<div class="col-md-10 col-sm-12">
<ul class="bordered-list">
<li class="commit js-toggle-container">
<%= render :partial => 'commit_details', :locals => {:changeset => changeset} %>
<div style="padding-left:30px;" 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="修订号">
<%= link_to truncate(changeset.short_id.to_s, :length => 20), {:controller => 'repositories', :action => 'commit_diff', :id => project.id, :changeset => changeset.id} %>
</div>
<div class="notes_count">
</div>
</div>
</li>
</ul>
</div>
2015-06-12 16:48:43 +08:00
<% end %>
</tbody>
</table>
<p style="padding-top: 10px;">
2015-10-29 17:28:23 +08:00
<%#= submit_tag(l(:label_view_diff), :name => nil, :class=>"c_blue") if show_diff %>
2015-06-12 16:48:43 +08:00
</p>
2015-11-18 16:11:51 +08:00
<ul class="wlist">
2015-11-27 15:21:58 +08:00
<%= pagination_links_full commits_pages, commits_count, :per_page_links => false, :remote => false, :flag => true %>
2015-11-18 16:11:51 +08:00
</ul>
2013-08-01 10:33:49 +08:00
<% end %>
2015-11-18 16:11:51 +08:00