{% load i18n %}
{% load bootstrap_pagination_tags %}
{% load photo_tags %}
{% load perm_tags %}
{% load humanize %}


<div class="photo-search-item">
    <div class="search-item">
        <table>
        <td>
            <a href="{{ image.get_absolute_url }}">
                {% if image.file_exists %}
                    <a href="{% url "photo" image.pk %}"><img class="photo-search-photo" src="{{ image.get_small_crop_url }}" alt="{% blocktrans with t=image.title|truncatechars:123 %}{{ t }}{% endblocktrans %}" title="{% blocktrans with t=image.title|truncatechars:123 %}{{ t }}{% endblocktrans %}"/></a>
                {% else %}
                    <img class="photo-search-photo" src="{{ image.default_thumbnail }}" alt="{% trans 'search photo' %{" title="{% trans 'search photo' %}" />
                {% endif %}
            </a>
        </td>
        <td>
            <div class="photo-search-info">
                <h2><a href="{{ image.get_absolute_url }}">{% blocktrans with t=image.title %}{{ t }}{% endblocktrans %}</a></h2>
                <div class="description">
                    {% blocktrans with c=image.caption|striptags|truncatewords_html:25|safe %}{{ c }}{% endblocktrans %}
                </div>
            </div>
        </td>
        </table>
    </div>
    {% include "photos/meta.html" %}
</div>
