]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/shared/_pagination.html.erb
Merge remote-tracking branch 'upstream/pull/5334'
[rails.git] / app / views / shared / _pagination.html.erb
index f10d0a9dc36648527306da667cdb764494c71d37..547078c51158f5be69df8eaa3232f3b82c0e1b7e 100644 (file)
@@ -1,3 +1,5 @@
+<% if older_id || newer_id %>
+
 <% translation_scope ||= "shared.pagination.#{controller.controller_name}" %>
 <nav>
   <% link_class = "page-link icon-link text-center" %>
@@ -31,3 +33,5 @@
     <% end -%>
   </ul>
 </nav>
+
+<% end %>