]> git.openstreetmap.org Git - rails.git/commitdiff
Now when all the entries fit on one page a trailing slash won't be
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 14 Sep 2009 19:42:32 +0000 (19:42 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 14 Sep 2009 19:42:32 +0000 (19:42 +0000)
included after "Showing page %d (%d of %d)"

app/views/changeset/_changeset_paging_nav.html.erb

index 27bc30981b24b896f0ab35c91d80aebd1e2000c5..ce3a79899f4abd021341501c2956547ae032d584 100644 (file)
@@ -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 %>
 </p>