You are here

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

Default theme implementation for the Moderation Sidebar's translations.

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

Available variables:

  • current_language: The language of the currently viewed entity.
  • translations: The translations of an entity, containing the language, state and the translation links
  • view_all: The 'View all translations' link.

File

templates/moderation-sidebar-translations.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the Moderation Sidebar's translations.
  5. *
  6. * This is what appears when you click "Translate" in the sidebar.
  7. *
  8. * Available variables:
  9. * - current_language: The language of the currently viewed entity.
  10. * - translations: The translations of an entity, containing the language, state
  11. * and the translation links
  12. * - view_all: The 'View all translations' link.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <p class="translation-language">{% trans %}<strong>{{ current_language }}</strong> (current){% endtrans %}</p>
  18. {% for translation in translations %}
  19. <div class="moderation-sidebar-translation-item">
  20. <p class="translation-language"><strong>{{ translation.language }}</strong></p>
  21. {% if translation.state %}
  22. <p class="translation-info">
  23. {% trans %}Status: <strong>{{ translation.state }}</strong>{% endtrans %}
  24. </p>
  25. {% endif %}
  26. <div class="translation-links-container">
  27. {{ translation.links }}
  28. </div>
  29. </div>
  30. {% endfor %}
  31. {% if view_all %}
  32. <div class="moderation-sidebar-translation-view-all-container">{{ view_all }}</div>
  33. {% endif %}