From 76f71f8cca4c5ecffd715f98720fd064b934ad4c Mon Sep 17 00:00:00 2001 From: Florent Yvon Date: Fri, 22 Nov 2024 14:11:44 +0000 Subject: [PATCH] Disabling click on "..." pagination cell --- catalog/static/catalog/pgs.scss | 3 +++ .../templates/catalog/pgs_catalog_django_tables2_browse.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/catalog/static/catalog/pgs.scss b/catalog/static/catalog/pgs.scss index 8d9c3d57..7029674b 100644 --- a/catalog/static/catalog/pgs.scss +++ b/catalog/static/catalog/pgs.scss @@ -547,6 +547,9 @@ h2 { .page-link { color:$pgs_colour_1; } +.pagination .page-item.disabled { + cursor: not-allowed; +} .dropdown-menu-right { .dropdown-item { font-size: 14px; diff --git a/catalog/templates/catalog/pgs_catalog_django_tables2_browse.html b/catalog/templates/catalog/pgs_catalog_django_tables2_browse.html index abed7432..f851dead 100644 --- a/catalog/templates/catalog/pgs_catalog_django_tables2_browse.html +++ b/catalog/templates/catalog/pgs_catalog_django_tables2_browse.html @@ -72,7 +72,7 @@ {% if table.page.has_previous or table.page.has_next %} {% block pagination.range %} {% for p in table.page|table_page_range:table.paginator %} -
  • +
  • {{ p }}