tmgmt-legend.html.twig

Default theme implementation for the state legend.

Available variables:

  • title: The title of the legend.
  • items: Each icon with its legend.
4 theme calls to tmgmt-legend.html.twig
tmgmt_color_job_item_legend in ./tmgmt.module
Provides color legends for job item states.
tmgmt_color_job_legend in ./tmgmt.module
Provides color legends for job states.
tmgmt_color_legend in ./tmgmt.module
Provides color legends for source statuses.
tmgmt_color_review_legend in ./tmgmt.module
Provides color legends for job item review form.

File

templates/tmgmt-legend.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the state 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 width="16" height="16" src="{{ item.icon }}">
  19. </div>
  20. <div class="tmgmt-legend-status">{{ item.legend }}</div>
  21. </div>
  22. {% endfor %}
  23. </div>