So the way [17620] did it sucked but [17624] broke it unless you

didn't have any changes because .item_count is the number of edits,
not pages.

Using .page_count works though, Whee!
This commit is contained in:
Ævar Arnfjörð Bjarmason 2009-09-14 23:36:21 +00:00
parent 835e12925e
commit da28349f51

View file

@ -7,7 +7,7 @@ if (current_page.first_item < current_page.last_item) # if more than 1 changeset
%>-<%= current_page.last_item %><% %>-<%= current_page.last_item %><%
end %> end %>
<%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>) <%= t'changeset.changeset_paging_nav.of'%> <%= @edit_pages.item_count %>)
<% if @edit_pages.item_count > 1 %> <% if @edit_pages.page_count > 1 %>
| <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %> | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %>
<% end %> <% end %>
</p> </p>