tmgmt-local-legend.html.twig

Default theme implementation for the status legend.

Available variables:

  • title: The title of the legend.
  • items: Each icon with its legend.
3 theme calls to tmgmt-local-legend.html.twig
tmgmt_color_legend_local_task in translators/tmgmt_local/tmgmt_local.module
Provides color legends for local tasks.
tmgmt_color_legend_local_task_item in translators/tmgmt_local/tmgmt_local.module
Provides color legends for local task items.
tmgmt_color_local_review_legend in translators/tmgmt_local/tmgmt_local.module
Provides color legends for task item review form.

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>