templates/web/pages/_components/comment-box.html.twig line 1

Open in your IDE?
  1. 
    {#
    <div class="discussion-comment">
        <div class="discussion-comment__initial">
            JN
        </div>
        <div class="discussion-comment__info">
            <div class="discussion-comment__author">{{ comment.client.email }}</div>
            <div class="discussion-comment__date">{{ comment.submitted|date("d.m.Y, H:i") }}</div>
        </div>
        <div class="discussion-comment__main">
            <p class="discussion-comment__message">{{ comment.content }}</p>
            <a href="#" data-comment-id="666" class="discussion-comment__reply-link spawn-comment-form">Odpovědět</a>
        </div>
    </div>
    
        {% if comment.underComment|length > 0 %}
            {% for c in comment.underComment %}
                {% include 'web/pages/_components/comment-box.html.twig' with {'comment' : c} %}
            {% endfor %}
        {% endif %}
    #}
    <div class="discussion-comment {{ comment.underComment|length > 0 ? "discussion-comment--w-reply" }}">
        <div class="discussion-comment__initial">
            {{ comment.client.name|slice(0, 2) }}
        </div>
        <div class="discussion-comment__info">
            <div class="discussion-comment__author">{{ comment.client.name }}</div>
            <div class="discussion-comment__date">{{ comment.submitted|date("d.m.Y, H:i") }}</div>
        </div>
        <div class="discussion-comment__main">
            <p class="discussion-comment__message">{{ comment.content }}</p>
            {% if is_granted('IS_AUTHENTICATED_FULLY') == true %}
            <a href="#" data-comment-id="{{ comment.id }}" class="discussion-comment__reply-link spawn-comment-form">Odpovědět</a>
            {% endif %}
        </div>
        {% if comment.underComment|length > 0 %}
            {% for c in comment.underComment %}
                {% include 'web/pages/_components/comment-box-reply.html.twig' with {'comment' : c, 'respondedTo': comment.client} %}
            {% endfor %}
        {% endif %}
    
    </div>