mark.html.twig 486 B

12345678910111213141516171819202122
  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 %}