<div class="gallery">
	<div class="image">
		{% if user.is_authenticated %}
		<div class="overlay">
			<a href="{% url gallery_permissions gallery.identificator %}">
				<img src="{{ STATIC_URL }}img/icon-settings.png" alt="edit permissions" title="edit permissions" />
			</a>
			<a href="{% url gallery_remove gallery.identificator %}">
				<img src="{{ STATIC_URL }}img/icon-delete.png" alt="delete" title="delete" />
			</a>
		</div>
		{% endif %}
		<a href="{% url gallery_detail gallery.identificator %}">
			<img  src="{% url get_thumb_data2 gallery.cover_id "200"%}"/>
		</a>
	</div>
	<div class="title">
		<a href="{% url gallery_detail gallery.identificator %}">
			{{ gallery.name }}
		</a>
	</div>
	<a class="owner" href="{% url user_page gallery.owner.id %}">{{gallery.owner.username}}</a>
</div>
