You are here

activity--notification.html.twig in Open Social 8.6

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--notification.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. <a href="{{ full_url }}" class="{{ status_class }}">
  19. <div{{ attributes.addClass('media') }}>
  20. <div class="media-left">
  21. {% if actor %}
  22. {{- actor -}}
  23. {% endif %}
  24. </div>
  25. <div class="media-body">
  26. {% if content %}
  27. {{- content -}}
  28. {% endif %}
  29. <div class="text-gray-light">{{ date }}</div>
  30. </div>
  31. </div>
  32. </a>