diff --git a/app/views/shared/_pagination.html.erb b/app/views/shared/_pagination.html.erb index ef965d4b92..f8d4554824 100644 --- a/app/views/shared/_pagination.html.erb +++ b/app/views/shared/_pagination.html.erb @@ -1,9 +1,11 @@ - + <%= pagination_item(newer_id && @params.merge(:before => nil, :after => nil)) do %> <%= previous_page_svg_tag :class => "flex-shrink-0", :count => 2 %> <%= t :newest, :scope => translation_scope %> <% end %> + + <%= pagination_item(newer_id && @params.merge(:before => nil, :after => newer_id)) do %> <%= previous_page_svg_tag :class => "flex-shrink-0" %> <%= t :newer, :scope => translation_scope %> @@ -12,6 +14,8 @@ <%= t :older, :scope => translation_scope %> <%= next_page_svg_tag :class => "flex-shrink-0" %> <% end %> + + <%= pagination_item(older_id && @params.merge(:before => nil, :after => 0)) do %> <%= t :oldest, :scope => translation_scope %> <%= next_page_svg_tag :class => "flex-shrink-0", :count => 2 %>