24 lines
925 B
Twig
24 lines
925 B
Twig
<div class="media {% if level != 1 %}level-{{ level }}{%endif %}">
|
|
<div class="pull-left">
|
|
<img width="90" height="90" data-dimensions="destroy" class="avatar" src="{{ comment.avatar }}" alt="{{ comment.author }}" title="{{ comment.author }}">
|
|
</div>
|
|
<div class="media-body">
|
|
<div class="media-heading meta">
|
|
<a rel="author" href="{{ comment.Website ? comment.Website : '#' }}">{{ comment.author }}</a>,
|
|
|
|
<time datetime="{{ post.createdAt|date("Y-m-d") }}" title="{{ comment.createdAt|date("r") }}">
|
|
{{ comment.createdAt|date("d/m/Y à H\\hi") }}
|
|
</time>
|
|
</div>
|
|
<p>{{ comment.Content|comment }}</p>
|
|
|
|
<button class="btn btn-default btn-sm answer" data-comment="{{ comment.id }}">Répondre</button>
|
|
</div>
|
|
</div>
|
|
|
|
{% set level = level + 1 %}
|
|
|
|
{% for child in comment.orderedComments %}
|
|
{{ include('DeblanBlogBundle:Default:theComment.html.twig', {level: level, comment: child}) }}
|
|
{% endfor %}
|