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