{% extends '../global.html' %} {% load responsive_images %} {% block content %} {% if created_galleries|length > 0 %} Your galleries {% for gallery in created_galleries %} {% if gallery.images.all|length <= 0 %} no images {% endif %} {% if gallery.images.all|length == 1 %} {% for image in gallery.images.all %} {% endfor %} {% endif %} {% if gallery.images.all|length == 2 %} {% for image in gallery.images.all %} {% endfor %} {% endif %} {% if gallery.images.all|length == 3 %} {% for image in gallery.images.all %} {% endfor %} {% endif %} {% if gallery.images.all|length >= 4 %} {% for image in gallery.images.all|slice:":4" %} {% endfor %} {% endif %} {% if gallery.title %} {{gallery.title}} {% endif %} {% endfor %} {% endif %} {% if invited_galleries|length > 0 %} Galleries you were invited to {% for gallery in invited_galleries %} {% if gallery.images.all|length <= 0 %} no images {% endif %} {% if gallery.images.all|length == 1 %} {% for image in gallery.images.all %} {% endfor %} {% endif %} {% if gallery.images.all|length == 2 %} {% for image in gallery.images.all %} {% endfor %} {% endif %} {% if gallery.images.all|length == 3 %} {% for image in gallery.images.all %} {% endfor %} {% endif %} {% if gallery.images.all|length >= 4 %} {% for image in gallery.images.all|slice:":4" %} {% endfor %} {% endif %} {% if gallery.title %} {{gallery.title}} {% endif %} {% endfor %} {% endif %} {% endblock content %}
{{gallery.title}}