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~60^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/566fb06709d75f12a4854748dd1f1425a4c0480b?ds=sidebyside;hp=-c Don't show older/newer buttons if all items fit on one page --- 566fb06709d75f12a4854748dd1f1425a4c0480b 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 %>