<div class="navigation">
	{% if page_end != 0 %}
		{% if edit_gallery%}
			<a href="{% url gallery_edit_page gallery_id 0 %}">|<</a>
			<a href="{% url gallery_edit_page gallery_id page_prev %}"><<</a>
			<span>{{page}}</span>
			<a href="{% url gallery_edit_page gallery_id page_next %}">>></a>
			<a href="{% url gallery_edit_page gallery_id page_end %}">>|</a>
		{% else %}
			<a href="{% url gallery_detail_page gallery_id 0 %}">|<</a>
			<a href="{% url gallery_detail_page gallery_id page_prev %}"><<</a>
			<span>{{page}}</span>
			<a href="{% url gallery_detail_page gallery_id page_next %}">>></a>
			<a href="{% url gallery_detail_page gallery_id page_end %}">>|</a>
		{% endif %}
	{% endif %}
</div>
