{# /** * @file heartbeat-stream.html.twig * Default theme implementation to present Heartbeat stream data. * * This template is used when viewing Heartbeat stream pages. * * * Available variables: * - content: A list of content items. Use 'content' to print all content, or * - attributes: HTML attributes for the container element. * * @see template_preprocess_heartbeat_stream() * * @ingroup themeable */ #}
{% if content %} {{- content -}} {% endif %} {% autoescape false %} {% for message in messages %} {#{{ message }}#}
{{ message.userName }} {{ message.user }}
{{ message.timeAgo }}
{{ message.heartbeat }}
{{ message.likeFlag }}
{{ message.unlikeFlag }}
{% if message.commentCount > 1 %} {{ message.commentCount }} comments {% elseif message.commentCount == 1 %} {{ message.commentCount }} comment {% else %} Comment {% endif %}
{{ message.commentForm }}
{% for comment in message.comments %}
{{ comment.owner }} {{ comment.username }}
{{ comment.timeAgo }}
{{ comment.body }}
{{ comment.commentLike}}
{% for subComment in comment.subComments %}
{{ subComment.owner }} {{ subComment.username }}
{{ subComment.timeAgo }}
{{ subComment.body }}
{{ subComment.commentLike}}
{% endfor %} {{ comment.reply }}
{% endfor %}
{% endfor %} {% endautoescape %}