tmgmt-local-progress-bar.html.twig

Default theme implementation for the local progress bar.

Available variables:

  • title: The title of the field that will display when hover.
  • width_untranslated: The width of the untranslated bar.
  • width_translated: The width of the translated bar.
  • width_completed: The width of the completed bar.
  • count_untranslated: The count value of the untranslated bar.
  • count_translated: The count value of the translated bar.
  • count_completed: The count value of the completed bar.
1 theme call to tmgmt-local-progress-bar.html.twig
Progress::render in translators/tmgmt_local/src/Plugin/views/field/Progress.php

File

translators/tmgmt_local/templates/tmgmt-local-progress-bar.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the local progress bar.
  5. *
  6. * Available variables:
  7. * - title: The title of the field that will display when hover.
  8. * - width_untranslated: The width of the untranslated bar.
  9. * - width_translated: The width of the translated bar.
  10. * - width_completed: The width of the completed bar.
  11. * - count_untranslated: The count value of the untranslated bar.
  12. * - count_translated: The count value of the translated bar.
  13. * - count_completed: The count value of the completed bar.
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div title="{{ title }}">
  19. {% if width_untranslated %}
  20. <div class="tmgmt-local-progress-untranslated" style="width: {{ width_untranslated }}%">{{ count_untranslated }}</div>
  21. {% endif %}
  22. {% if width_translated %}
  23. <div class="tmgmt-local-progress-translated" style="width: {{ width_translated }}%">{{ count_translated }}</div>
  24. {% endif %}
  25. {% if width_completed %}
  26. <div class="tmgmt-local-progress-completed" style="width: {{ width_completed }}%">{{ count_completed }}</div>
  27. {% endif %}
  28. </div>