You are here

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

Default theme implementation for the Moderation Sidebar's information area.

This is what appears at the top of the sidebar when moderation an entity.

Available variables:

  • title: The title of the entity.
  • state: The label of the moderation state.
  • 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-info.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the Moderation Sidebar's information area.
  5. *
  6. * This is what appears at the top of the sidebar when moderation an entity.
  7. *
  8. * Available variables:
  9. * - title: The title of the entity.
  10. * - state: The label of the moderation state.
  11. * - revision_time: The timestamp of the revision.
  12. * - revision_time_pretty: The revision time, formatted to be human-readable.
  13. * - revision_author: The display name of the revision author.
  14. * - revision_author_link: A link to the revision author.
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <div class="moderation-sidebar-info">
  20. <p>{% trans %}Status: <strong>{{ state }}</strong>{% endtrans %}</p>
  21. {% if revision_author_link %}
  22. <p>{{ 'Authored by' | t }} {{ revision_author_link }} {{ revision_time_pretty }}</p>
  23. {% endif %}
  24. </div>