@register.simple_tag
def admin_paginator_number(cl, i):
    if i == DOT:
        return '<li>{}</li>'.format(DOTS)
    elif i == cl.page_num:
        return format_html(
            '<li class="current"><a href="#">{}</a></li> ', i + 1)
    else:
        return format_html(
            '<li><a href="{}">{}</a></li> ',
            cl.get_query_string({PAGE_VAR: i}),
            i + 1
        )
Get file revision info for the given file.
dataset/ETHPy150Open allegro/ralph/src/ralph/admin/templatetags/admin_change_list.py/admin_paginator_number--crossover with--dataset/ETHPy150Open mwclient/mwclient/mwclient/image.py/Image.imagehistory