From 253e8a272d3dbedd2989535d085fb9e0aac66195 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 14 Sep 2009 23:04:06 +0000 Subject: [PATCH] Improve handling of the case where there is only one page of changesets. --- app/views/changeset/_changeset_paging_nav.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/changeset/_changeset_paging_nav.html.erb b/app/views/changeset/_changeset_paging_nav.html.erb index ce3a79899..3105425e6 100644 --- a/app/views/changeset/_changeset_paging_nav.html.erb +++ b/app/views/changeset/_changeset_paging_nav.html.erb @@ -7,8 +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 %>) -<% pagination_links = pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %> -<% if pagination_links %> - | <%= pagination_links %> +<% if @edit_pages.item_count > 1 %> + | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %> <% end %>

-- 2.43.2