From 06b115a746162a629e508fabc80dfa6cc810829d Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Wed, 12 Aug 2026 14:58:46 +0300 Subject: [PATCH] Hide go to first btn if it's the first page same for last --- .../templates/partial/pagination.html.twig | 30 ++++++++++--------- .../templates/page/tag-resource.html.twig | 13 +------- 2 files changed, 17 insertions(+), 26 deletions(-) diff --git a/src/App/templates/partial/pagination.html.twig b/src/App/templates/partial/pagination.html.twig index 4169386f..d8218b2b 100644 --- a/src/App/templates/partial/pagination.html.twig +++ b/src/App/templates/partial/pagination.html.twig @@ -1,22 +1,24 @@ diff --git a/src/Blog/templates/page/tag-resource.html.twig b/src/Blog/templates/page/tag-resource.html.twig index a9f904ce..4f2827f4 100644 --- a/src/Blog/templates/page/tag-resource.html.twig +++ b/src/Blog/templates/page/tag-resource.html.twig @@ -42,18 +42,7 @@ {% if data.lastPage > 1 %} - + {{ include('@partial/pagination.html.twig', {data: data, aria_label: 'Tag posts pagination'}) }}

Page {{ data.currentPage }} of {{ data.lastPage }}