From 566fb06709d75f12a4854748dd1f1425a4c0480b Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 21 Oct 2024 14:51:35 +0300 Subject: [PATCH 1/1] Don't show older/newer buttons if all items fit on one page --- app/views/shared/_pagination.html.erb | 4 ++++ 1 file changed, 4 insertions(+) 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 %> -- 2.39.5