-<% pagination_links = pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %>
-<% if pagination_links %>
- | <%= pagination_links %>
+<% if @edit_pages.page_count > 1 %>
+ | <%= pagination_links_each(@edit_pages, {}) { |n| link_to(n, params.merge({ :page => n })) } %>