opigno-statistics-user-metrics.html.twig in Opigno statistics 8
Same filename and directory in other branches
Default theme implementation to display the metric items.
Available variables:
- elements['#help_text']: Popover text.
- elements.
2 theme calls to opigno-statistics-user-metrics.html.twig
- DashboardForm::buildUserMetrics in src/
Form/ DashboardForm.php - Builds user metrics.
- TrainingForm::buildUserMetrics in src/
Form/ TrainingForm.php - Builds user metrics.
File
templates/opigno-statistics-user-metrics.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display the metric items.
- *
- * Available variables:
- * - elements['#help_text']: Popover text.
- * - elements.
- */
- #}
-
- <div class="user-metrics">
- <h3 class="user-metrics-title">
- {{ 'Users metrics'|t }}
- {% if elements['#help_text'] %}
- <div class="popover-help"
- data-toggle="popover"
- data-content="{{ elements['#help_text'] }}">
- ?
- </div>
- {% endif %}
- </h3>
-
- <div class="user-metrics-content">
- {{ elements }}
- </div>
- </div>