123456789101112131415161718192021222324252627282930313233343536373839 |
- {#
- /**
- * @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
- */
- #}
- <div class="heartbeat-stream">
- {% if content %}
- {{- content -}}
- {% endif %}
- {% autoescape false %}
- {% for message in messages %}
- <div{{ attributes.addClass('heartbeat-message') }} id="heartbeat-{{ message.id }}">
- <div class="heartbeat-owner">
- <a href="/user/{{ message.userId }}"><img src="{{ message.userPicture }}" /></a>
- {{ message.user }}
- <div class="time-ago">{{ message.timeAgo }} ago</div>
- </div>
- <div class="heartbeat-content">
- {{ message.heartbeat }}
- </div>
- <div class="heartbeat-comment">
- {{ message.commentForm }}
- </div>
- </div>
- {% endfor %}
- {% endautoescape %}
- </div>
|