Skip to content

Commit

Permalink
Merge pull request PGScatalog#397 from fyvon/fix/table_pagination
Browse files Browse the repository at this point in the history
Prevent click on "..." in pagination buttons
  • Loading branch information
fyvon authored Nov 22, 2024
2 parents 6e102aa + 76f71f8 commit f221885
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions catalog/static/catalog/pgs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<li class="page-item{% if table.page.number == p %} active{% endif %}">
<li class="page-item{% if table.page.number == p %} active{% endif %}{% if p == '...' %} disabled{% endif %}">
<a class="page-link" {% if p != '...' %}href="{% querystring table.prefixed_page_field=p %}"{% endif %}>
{{ p }}
</a>
Expand Down

0 comments on commit f221885

Please sign in to comment.