You are here

post--activity-comment.html.twig in Open Social 8.2

post-activity-comment.html.twig

Deprecated

The template is not used anymore since comments are aggegrated with the post itself. If a developer disables aggegration of comments this template will be used again.

Available variables:

  • content: A list of content items. Use 'content' to print all content, or
  • attributes: HTML attributes for the container element.

File

themes/socialbase/templates/post/post--activity-comment.html.twig
View source
  1. {#
  2. /**
  3. * @file post-activity-comment.html.twig
  4. * @deprecated
  5. *
  6. * The template is not used anymore since comments are aggegrated with
  7. * the post itself. If a developer disables aggegration of comments
  8. * this template will be used again.
  9. *
  10. * Available variables:
  11. * - content: A list of content items. Use 'content' to print all content, or
  12. * - attributes: HTML attributes for the container element.
  13. *
  14. * @see template_preprocess_post()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. {{ attach_library('socialbase/comment') }}
  20. {%
  21. set classes = [
  22. 'margin-top-s',
  23. logged_in ? 'margin-bottom-m',
  24. ]
  25. %}
  26. <hr class="ruler-sm">
  27. <div class="media">
  28. <div class="media-left avatar">
  29. {% if author_picture %}
  30. {{ author_picture }}
  31. {% endif %}
  32. </div>
  33. <div class="media-body">
  34. <div class="media-heading text-m">
  35. {% if content.user_id %}
  36. {{ content.user_id }}
  37. {% endif %}
  38. <div class="post-date">{{ date }}</div>
  39. </div>
  40. </div>
  41. </div>
  42. <div{{ attributes.addClass(classes) }}>
  43. {% if content.field_post %}
  44. {{ content.field_post }}
  45. {% endif %}
  46. </div>