Fixed: performance issue on RepositoriesController#revisions when a changeset has a great number of changes (eg. 100,000).

Also added pagination for changes on changeset details view.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@535 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-05-15 21:32:36 +00:00
parent 777c9acae8
commit bb1fccb7b7
5 changed files with 47 additions and 10 deletions
+4 -3
View File
@@ -28,7 +28,7 @@
<p><%= link_to(l(:label_view_diff), :action => 'diff', :id => @project, :path => "", :rev => @changeset.revision) if @changeset.changes.any? %></p>
<table class="list">
<tbody>
<% @changeset.changes.each do |change| %>
<% @changes.each do |change| %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><div class="square action_<%= change.action %>"></div> <%= change.path %></td>
<td align="right">
@@ -40,8 +40,9 @@
<% end %>
</tbody>
</table>
<p><%= lwr(:label_modification, @changeset.changes.length) %></p>
<p><%= pagination_links_full @changes_pages, :rev => @changeset.revision %>
[ <%= @changes_pages.current.first_item %> - <%= @changes_pages.current.last_item %> / <%= @changes_count %> ]</p>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
<% end %>