{% if is_ajax_pagination is True %} {#{% if is_paginated %}#} {#{% endif %}#} {% else %} {#{% if is_paginated %}#} {#{% endif %}#} {% endif %}