<p>
<% current_page = @edit_pages.current_page %>

<%= t'changeset.changeset_paging_nav.showing_page' %> 
<%= current_page.number %> (<%= current_page.first_item %><% 
if (current_page.first_item < current_page.last_item) # if more than 1 changeset on page 
  %>-<%= 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 %>
<% end %>
</p>

<p>
<% current_page = @edit_pages.current_page %>

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

Improve handling of the case where there is only one page of changesets.
Improve handling of the case where there is only one page of changesets.


