{% if theme %}
{% endif %}
{% import "photo_card.html" as photo_card %} {% import "album_card.html" as album_card %} {% for result in results %} {% if result.__class__.__name__ == 'Photo' %} {{photo_card.create_photo_card(result, view=search_kwargs["view"])}} {% elif result.__class__.__name__ == 'Album' %} {{album_card.create_album_card(result, view=search_kwargs["view"])}} {% endif %} {% endfor %}