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.
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.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the status 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 src="{{ item.icon }}">
- </div>
- <div class="tmgmt-legend-status">{{ item.legend }}</div>
- </div>
- {% endfor %}
- </div>