{% load embed_video_tags %}
    <div class="polaroid">
        <a href="{% url 'tasks:task-answer-detail' task_answer_id=task_answer.id task_answer_slug=task_answer.slug %}">
            <div class="polaroid__image">
                {# TODO: Czy ten badge potrzebny? #}
        {#        <div class="polaroid__image__category">#}
        {#            gestykulacja#}
        {#        </div>#}
                {% if task_answer.video_2 %}
                    {% video task_answer.video_2 as task_answer_video %}
                    <img src="{{ task_answer_video.thumbnail }}" alt="{{ task_answer.task.title }}">
                    {% endvideo %}
                {% endif %}
            </div>
            <div class="polaroid__content">
                <div class="polaroid__content__title">
                    <p>{{ task_answer.task.title }}</p>
                </div>
                <div class="polaroid__content__subtitle">
                    <p>{{ task_answer.task.subtitle }}</p>
                </div>
            </div>
        </a>
    </div>
