tmgmt-legend.html.twig in Translation Management Tool 8
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.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the state legend.
- *
- * Available variables:
- * - title: The title of the legend.
- * - items: Each icon with its legend.
- *
- * @ingroup themeable
- */
- #}
- <div class="tmgmt-legend clearfix">
- <div class="tmgmt-status">{{ title }}</div>
- {% for item in items %}
- <div class="tmgmt-legend-wrapper">
- <div class="tmgmt-legend-icon">
- <img width="16" height="16" src="{{ item.icon }}">
- </div>
- <div class="tmgmt-legend-status">{{ item.legend }}</div>
- </div>
- {% endfor %}
- </div>