From: Anton Khorev Date: Mon, 21 Oct 2024 11:51:35 +0000 (+0300) Subject: Don't show older/newer buttons if all items fit on one page X-Git-Tag: live~141^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/566fb06709d75f12a4854748dd1f1425a4c0480b?hp=b753a4bf055811f7394ef455196c9dad3e4bd733 Don't show older/newer buttons if all items fit on one page --- diff --git a/app/views/shared/_pagination.html.erb b/app/views/shared/_pagination.html.erb index f10d0a9dc..547078c51 100644 --- a/app/views/shared/_pagination.html.erb +++ b/app/views/shared/_pagination.html.erb @@ -1,3 +1,5 @@ +<% if older_id || newer_id %> + <% translation_scope ||= "shared.pagination.#{controller.controller_name}" %> + +<% end %>