You are here

data-policy-data-policy-revision.html.twig in Data Policy 8

data-policy-data-policy-revision.html.twig

Default theme implementation to present Data policy revision teaser.

This template is used when viewing Data policy revision teaser.

Available variables:

  • date: Date and time when a revision was created.
  • username: Name of the user.
  • current: TRUE if it is current revision.
  • message: Revision log message teaser.

See also

template_preprocess_data_policy_data_policy_revision()

File

templates/data-policy-data-policy-revision.html.twig
View source
  1. {#
  2. /**
  3. * @file data-policy-data-policy-revision.html.twig
  4. *
  5. * Default theme implementation to present Data policy revision teaser.
  6. *
  7. * This template is used when viewing Data policy revision teaser.
  8. *
  9. * Available variables:
  10. * - date: Date and time when a revision was created.
  11. * - username: Name of the user.
  12. * - current: TRUE if it is current revision.
  13. * - message: Revision log message teaser.
  14. *
  15. * @see template_preprocess_data_policy_data_policy_revision()
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. {{ date }} by {{ username }}
  21. {% if current %}
  22. <em>({% trans %}current revision{% endtrans %})</em>
  23. {% endif %}
  24. {% if message %}
  25. <p class="revision-log">{{ message }}</p>
  26. {% endif %}