From 332f8d3a4fc30c618e23cdd5595f68a56c6dd6b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 14 Sep 2009 19:42:32 +0000 Subject: [PATCH] Now when all the entries fit on one page a trailing slash won't be included after "Showing page %d (%d of %d)" --- app/views/changeset/_changeset_paging_nav.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/changeset/_changeset_paging_nav.html.erb b/app/views/changeset/_changeset_paging_nav.html.erb index 27bc30981..ce3a79899 100644 --- a/app/views/changeset/_changeset_paging_nav.html.erb +++ b/app/views/changeset/_changeset_paging_nav.html.erb @@ -7,5 +7,8 @@ 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_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %> +<% pagination_links = pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %> +<% if pagination_links %> + | <%= pagination_links %> +<% end %>

-- 2.43.2