Same filename in this branch
  1. 10 core/modules/system/templates/mark.html.twig
  2. 10 core/themes/stable9/templates/content/mark.html.twig
  3. 10 core/themes/starterkit_theme/templates/content/mark.html.twig
  4. 10 core/themes/claro/templates/classy/content/mark.html.twig
  5. 10 core/modules/history/tests/themes/history_test_theme/templates/mark.html.twig
  6. 10 core/profiles/demo_umami/themes/umami/templates/classy/content/mark.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/system/templates/mark.html.twig
  2. 9 core/modules/system/templates/mark.html.twig

Default theme implementation for a marker for new or updated content.

Available variables:

2 theme calls to mark.html.twig
HistoryUserTimestamp::render in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php
NodeListBuilder::buildRow in core/modules/node/src/NodeListBuilder.php
Builds a row for an entity in the entity listing.

File

core/modules/system/templates/mark.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a marker for new or updated content.
  5. *
  6. * Available variables:
  7. * - status: Number representing the marker status to display. Use the constants
  8. * below for comparison:
  9. * - MARK_NEW
  10. * - MARK_UPDATED
  11. * - MARK_READ
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {% if logged_in %}
  17. {% if status is constant('MARK_NEW') %}
  18. {{ 'New'|t }}
  19. {% elseif status is constant('MARK_UPDATED') %}
  20. {{ 'Updated'|t }}
  21. {% endif %}
  22. {% endif %}

Related topics