{% load embed_video_tags %}
<div class="col-12">
    <div class="static-box">
        <div class="static-box__image">
            {% if apprentice_video.yt_video %}
                {% video apprentice_video.yt_video as apprentice_yt_video %}
                    {% video apprentice_yt_video %}
                {% endvideo %}
            {% endif %}
        </div>
        <div class="static-box__info">
            <div class="static-box__info__author">
                {{ apprentice_video.task_answer_as_1.apprentice.username }}
                {{ apprentice_video.task_answer_as_2.apprentice.username }}
            </div>
            <div class="static-box__info__date">
                Dodano: {{ apprentice_video.created|date:'d E Y' }}
            </div>
        </div>
        {% if apprentice_video.task_answer_as_1.custom_title or apprentice_video.task_answer_as_2.custom_title %}
            <div class="static-box__title">
                <p>
                    {{ apprentice_video.task_answer_as_1.custom_title }}
                    {{ apprentice_video.task_answer_as_2.custom_title }}
                </p>
            </div>
        {% endif %}
        {% if apprentice_video.reflection %}
        <div class="static-box__sentence">
            <p>
                {{ apprentice_video.reflection }}
            </p>
        </div>
        {% endif %}
    </div>
</div>
