tmgmt-progress-bar.html.twig

Default theme implementation for the progress bar.

Available variables:

  • title: The title of the field that will display when hover.
  • width_pending: The width of the pending bar.
  • width_translated: The width of the translated bar.
  • width_reviewed: The width of the reviewed bar.
  • width_accepted: The width of the accepted bar.
  • count_pending: The count value of the pending bar.
  • count_translated: The count value of the translated bar.
  • count_reviewed: The count value of the reviewed bar.
  • count_accepted: The count value of the accepted bar.
1 theme call to tmgmt-progress-bar.html.twig
Progress::render in src/Plugin/views/field/Progress.php

File

templates/tmgmt-progress-bar.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the progress bar.
  5. *
  6. * Available variables:
  7. * - title: The title of the field that will display when hover.
  8. * - width_pending: The width of the pending bar.
  9. * - width_translated: The width of the translated bar.
  10. * - width_reviewed: The width of the reviewed bar.
  11. * - width_accepted: The width of the accepted bar.
  12. * - count_pending: The count value of the pending bar.
  13. * - count_translated: The count value of the translated bar.
  14. * - count_reviewed: The count value of the reviewed bar.
  15. * - count_accepted: The count value of the accepted bar.
  16. *
  17. * @ingroup themeable
  18. */
  19. #}
  20. <div title="{{ title }}">
  21. {% for state, part in parts %}
  22. {% if part.width %}
  23. <div class="tmgmt-progress tmgmt-progress-{{ state }}" style="width: {{ part.width }}%">{{ part.count }}</div>
  24. {% endif %}
  25. {% endfor %}
  26. </div>