{% if page_end != 0 %} {% if edit_gallery%} |< << {{page}} >> >| {% else %} |< << {{page}} >> >| {% endif %} {% endif %}