You are here

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

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 }}
  39. {% if visibility_icon and visibility_label %}
  40. <svg class="margin-left-s icon-visibility">
  41. <use xlink:href="#icon-{{ visibility_icon }}"></use>
  42. </svg>
  43. <strong>{{ visibility_label }}</strong>
  44. {% endif %}
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div{{ attributes.addClass(classes) }}>
  50. {% if content.field_post %}
  51. {{ content.field_post }}
  52. {% endif %}
  53. </div>