From da28349f5130bbdb2407a81ea73a4463307fcc8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 14 Sep 2009 23:36:21 +0000 Subject: [PATCH] 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! --- app/views/changeset/_changeset_paging_nav.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/changeset/_changeset_paging_nav.html.erb b/app/views/changeset/_changeset_paging_nav.html.erb index 3105425e6..5a5d94f05 100644 --- a/app/views/changeset/_changeset_paging_nav.html.erb +++ b/app/views/changeset/_changeset_paging_nav.html.erb @@ -7,7 +7,7 @@ if (current_page.first_item < current_page.last_item) # if more than 1 changeset %>-<%= current_page.last_item %><% end %> <%= 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 })) } %> <% end %>

-- 2.43.2