You are here

activity.html.twig in Open Social 8.2

activity.html.twig Default theme implementation to present Activity data.

This template is used when viewing Activity pages.

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/activity/activity.html.twig
View source
  1. {#
  2. /**
  3. * @file activity.html.twig
  4. * Default theme implementation to present Activity data.
  5. *
  6. * This template is used when viewing Activity 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_activity()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <li {{ attributes.addClass('stream-item') }}>
  19. <i class="stream-icon"></i>
  20. <div class="card card--stream">
  21. <div class="card__block">
  22. <div class="media-wrapper">
  23. <div class="media">
  24. <div class="media-left avatar">
  25. {% if actor %}
  26. {{- actor -}}
  27. {% endif %}
  28. </div>
  29. <div class="media-body">
  30. <div class="media-heading text-m">
  31. {% if content.field_activity_output_text %}
  32. {{- content.field_activity_output_text -}}
  33. {% endif %}
  34. <div class="post-date">{{ date }}</div>
  35. </div>
  36. </div>
  37. </div>
  38. {% if content.field_activity_entity %}
  39. {{ content.field_activity_entity }}
  40. {% endif %}
  41. </div>
  42. </div>
  43. </div>
  44. </li>