

@register.inclusion_tag('endless/show_more.html', takes_context=True)
def show_more(context, label=None, loading=settings.LOADING):
    'Show the link to get the next page in a Twitter-like pagination.\n\n    Usage::\n\n        {% show_more %}\n\n    Alternatively you can override the label passed to the default template::\n\n        {% show_more "even more" %}\n\n    You can override the loading text too::\n\n        {% show_more "even more" "working" %}\n\n    Must be called after ``{% paginate objects %}``.\n    '
    data = utils.get_data_from_context(context)
    page = data['page']
    if page.has_next():
        request = context['request']
        page_number = page.next_page_number()
        querystring_key = data['querystring_key']
        querystring = utils.get_querystring_for_page(request, page_number, querystring_key, default_number=data['default_number'])
        return {
            'label': label,
            'loading': loading,
            'path': iri_to_uri((data['override_path'] or request.path)),
            'querystring': querystring,
            'querystring_key': querystring_key,
            'request': request,
        }
    return {
        
    }

dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/templatetags/endless.py show_more/original