You are here

moderation-sidebar-revision.html.twig in Moderation Sidebar 8

Default theme implementation for the Moderation Sidebar's revisions.

This is what appears when you click "Revisions" in the sidebar.

Available variables:

  • revision_message: The revision message.
  • revision_time: The timestamp of the revision.
  • revision_time_pretty: The revision time, formatted to be human-readable.
  • revision_author: The display name of the revision author.
  • revision_author_link: A link to the revision author.

File

templates/moderation-sidebar-revision.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the Moderation Sidebar's revisions.
  5. *
  6. * This is what appears when you click "Revisions" in the sidebar.
  7. *
  8. * Available variables:
  9. * - revision_message: The revision message.
  10. * - revision_time: The timestamp of the revision.
  11. * - revision_time_pretty: The revision time, formatted to be human-readable.
  12. * - revision_author: The display name of the revision author.
  13. * - revision_author_link: A link to the revision author.
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div class="moderation-sidebar-revision-item">
  19. <p class="revision-message">{{ revision_message }}</p>
  20. {% if revision_author_link %}
  21. <p class="revision-info">{{ 'Authored by' | t }} {{ revision_author_link }} {{ revision_link }}</p>
  22. {% endif %}
  23. </div>