Skip to content

Improvement of snippet table pagination. #507

@Antoliny0919

Description

@Antoliny0919
Image

The current pagination applied to the snippet table only supports "Next Page" and "Previous Page."
While these options can be meaningful when the amount of data is small,
since there are currently 3,100 snippets, it might take quite some time to reach the snippets at the end.
(This kind of issue could be partially addressed by column ordering in the table, but the pagination still needs improvement.)

I would like to improve it as follows:
Change "Previous 20" and "Next 20" to simply "Previous" and "Next."
Then, I want to apply an ellipsis using the Paginator class provided by Django and display the pagination in a style that uses the pagination template tag from Django admin.

Image The image above shows the pagination applied in the GitHub PR tab, and I want to create a similar style like this as the final result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions