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

{% block content %}
	{% if user.is_authenticated %}
		<div class="menu-options">
			<ul>
				<li><a href="{% url create_empty_gallery %}"><img src="{{ STATIC_URL }}img/icon-add.png" alt="new gallery" title="new gallery" /></a></li>
			</ul>
		</div>

		<h2>My galleries</h2>

		<div class="galleries">
			{% for gallery in mygalleries %}
				{% include "itsapp/gallery_item.html"%}
			{% endfor %}
			<div class="cb"></div>
		</div>
	{% endif %}

	<hr />

	<h2>Shared galleries</h2>

	<div class="galleries">
		{% for gallery in sharedgalleries %}
			{% include "itsapp/gallery_item.html"%}
		{% endfor %}
		<div class="cb"></div>
	</div>
	
{% endblock %}
