{% extends "base.html" %} {% load static %} {% load galeria %} {% block content %}
{% if photos %} {% for photo in photos %}
{{photo.title}}
{% endfor %} {% elif results %} {% for result in results %}
{{result.title}}
{% endfor %} {% elif albums %} {% for album in albums %} {% if album.the_photo %}
{{album.name}}
{% endif %} {% endfor %} {% else %}
{{message}}
{% endif %}
{% endblock %}