From 8462538123f95ca9eeb5592499655da06e7def89 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 16 Jul 2021 09:51:15 +0200 Subject: [PATCH] adapt pagination to bootstrap, add a short pagination variant --- .../Resources/views/Pagination/long.html.twig | 38 ++++++++++--------- .../views/Pagination/short.html.twig | 25 ++++++++++++ 2 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 src/Bundle/ChillMainBundle/Resources/views/Pagination/short.html.twig diff --git a/src/Bundle/ChillMainBundle/Resources/views/Pagination/long.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Pagination/long.html.twig index 3166c187b..b0b787078 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Pagination/long.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Pagination/long.html.twig @@ -1,27 +1,29 @@ {%- macro page(text, page, class = "") -%} -{{ text }} +
  • {{ text }}
  • {%- endmacro -%} {% import _self as m %} {% if paginator|length > 1 %} - + + {% endif %} diff --git a/src/Bundle/ChillMainBundle/Resources/views/Pagination/short.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Pagination/short.html.twig new file mode 100644 index 000000000..27bc0c75d --- /dev/null +++ b/src/Bundle/ChillMainBundle/Resources/views/Pagination/short.html.twig @@ -0,0 +1,25 @@ +{%- macro page(text, page, class = "") -%} +
  • {{ text }}
  • +{%- endmacro -%} + +{% import _self as m %} + +{% if paginator|length > 1 %} + +{% endif %}