You are here

tmgmt-local-legend.html.twig in Translation Management Tool 8

Default theme implementation for the status legend.

Available variables:

  • title: The title of the legend.
  • items: Each icon with its legend.

File

translators/tmgmt_local/templates/tmgmt-local-legend.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the status legend.
  5. *
  6. * Available variables:
  7. * - title: The title of the legend.
  8. * - items: Each icon with its legend.
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. <div class="tmgmt-legend clearfix">
  14. <div class="tmgmt-status">{{ title }}</div>
  15. {% for item in items %}
  16. <div class="tmgmt-legend-wrapper">
  17. <div class="tmgmt-legend-icon">
  18. <img src="{{ item.icon }}">
  19. </div>
  20. <div class="tmgmt-legend-status">{{ item.legend }}</div>
  21. </div>
  22. {% endfor %}
  23. </div>