heartbeat-stream.html.twig 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {#
  2. /**
  3. * @file heartbeat-stream.html.twig
  4. * Default theme implementation to present Heartbeat stream data.
  5. *
  6. * This template is used when viewing Heartbeat stream pages.
  7. *
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_heartbeat_stream()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div class="heartbeat-stream">
  19. {% if content %}
  20. {{- content -}}
  21. {% endif %}
  22. {% autoescape false %}
  23. {% for message in messages %}
  24. <div{{ attributes.addClass('heartbeat-message') }} id="heartbeat-{{ message.id }}">
  25. <div class="heartbeat-owner">
  26. <a href="/user/{{ message.userId }}"><img src="{{ message.userPicture }}" /></a>
  27. {{ message.user }}
  28. <div class="time-ago">{{ message.timeAgo }} ago</div>
  29. </div>
  30. <div class="heartbeat-content">
  31. {{ message.heartbeat }}
  32. </div>
  33. <div class="heartbeat-comment">
  34. {{ message.commentForm }}
  35. </div>
  36. </div>
  37. {% endfor %}
  38. {% endautoescape %}
  39. </div>