{% extends "itsapp/base.html" %}

{% block content %}
	{% if user.is_authenticated %}
		<h2>{{userProfile.user.username}}</h2>
		<img  src="{% url get_thumb_data2 userProfile.avatar "100"%}"/>
		<hr />
		<h2>User's galleries</h2>
		<div class="galleries">
			{% for gallery in user_galleries %}
				{% include "itsapp/gallery_item.html"%}
			{% endfor %}
			<div class="cb"></div>
		</div>
	{% endif %}
	<hr />
	<h2>User's groups</h2>
	<div class="galleries">
		<div class="groups">
		{% for group in user_groups %}			
			{% include "itsapp/group_item.html"%}
		{% endfor %}
		</div>
		<div class="cb"></div>
	</div>
{% endblock %}
