Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: document how to show content when list is exhausted #133

Open
interDist opened this issue Jul 19, 2019 · 0 comments
Open

Suggestion: document how to show content when list is exhausted #133

interDist opened this issue Jul 19, 2019 · 0 comments

Comments

@interDist
Copy link

In my case, I wanted to display a text “no more results available” when the ‘endless’ list was exhausted. Going through the source code of the show_more template tag, I discovered that I could do it in the following manner in my template:

{% if not endless.page.has_next %}
    ...content...
{% endif %}

I think it will be useful to document this in the “Twitter-style Pagination” section of the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant