mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-21 23:27:57 +00:00
8fb7d16864
Pagination, filtering, and result counting in Ping admin is tricky as the pings table can contain millions of rows. We previously used "select reltuples from pg_class" trick to estimate the total number of rows. This only works on Postgres, and does not handle WHERE filters. This commit removes the search box, and changes the pagination template to allow pagination between pages 1-9 and nothing more.
10 lines
190 B
HTML
10 lines
190 B
HTML
{% load admin_list %}
|
|
{% load i18n %}
|
|
<p class="paginator">
|
|
{% if pagination_required %}
|
|
{% for i in cl.paginator.page_range %}
|
|
{% paginator_number cl i %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</p>
|