You are here

activity--notification-archive.html.twig in Open Social 8

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-archive.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="list-item list-item--link {{ status_class }}">
  19. <div class="list-item__avatar list-item__avatar--medium">
  20. {% if actor %}
  21. {{- actor -}}
  22. {% endif %}
  23. </div>
  24. <div class="list-item__text">
  25. {% if content %}
  26. {{- content -}}
  27. {% endif %}
  28. <div class="text-muted">{{ date }}</div>
  29. </div>
  30. </a>