{% load task_tags %}
<div class="col-12">
    <div class="single-right-photo">
        <div class="single-right-photo__text">
            <div class="single-right-photo__text__status">
                <div class="single-right-photo__text__status__icon single-right-photo__text__status__icon--{{ task_icon_class_name }}">
                </div>
                <div class="single-right-photo__text__status__text">
                    {{ task.subtitle }}
                </div>
            </div>
            <div class="single-right-photo__text__title">
                {{ task.title }}
            </div>
            <div class="single-right-photo__text__description">
                {{ task.header }}
            </div>
            <div class="single-right-photo__text__redirect">
                <a href="{% url 'tasks:task-detail' task.title task.id %}">Przejdź do zadania</a>
            </div>
        </div>
        <div class="single-right-photo__image">
            {% if task.image %}
                <img src="{{ task.image.url }}" alt="{{ task.title }}">
            {% endif %}
        </div>
    </div>
</div>
