You are here

opigno-statistics-user-metric.html.twig in Opigno statistics 8

Same filename and directory in other branches
  1. 3.x templates/opigno-statistics-user-metric.html.twig

Default theme implementation to display the metric value.

Available variables:

  • value: Value.
  • help_text: The popover text.
  • label: The label of value.

File

templates/opigno-statistics-user-metric.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display the metric value.
  5. *
  6. * Available variables:
  7. * - value: Value.
  8. * - help_text: The popover text.
  9. * - label: The label of value.
  10. */
  11. #}
  12. <div class="user-metric">
  13. <div class="user-metric-value">
  14. {{ value }}
  15. {% if help_text %}
  16. <div class="popover-help"
  17. data-toggle="popover"
  18. data-content="{{ help_text }}">
  19. ?
  20. </div>
  21. {% endif %}
  22. </div>
  23. <div class="user-metric-label">{{ label }}</div>
  24. </div>