opigno-statistics-user-metric.html.twig in Opigno statistics 3.x
Same filename and directory in other branches
Default theme implementation to display the metric value.
Available variables:
- value: Value.
- help_text: The popover text.
- label: The label of value.
1 theme call to opigno-statistics-user-metric.html.twig
- DashboardForm::buildUserMetric in src/Form/ DashboardForm.php 
- Builds one block for the user metrics.
File
templates/opigno-statistics-user-metric.html.twigView source
- {#
- /**
-  * @file
-  * Default theme implementation to display the metric value.
-  *
-  * Available variables:
-  * - value: Value.
-  * - help_text: The popover text.
-  * - label: The label of value.
-  */
- #}
- 
- <div class="user-metric">
-   <div class="user-metric-value">
-     {{ value }}
-     {% if help_text %}
-       <div class="popover-help"
-            data-toggle="popover"
-            data-content="{{ help_text }}">
-         ?
-       </div>
-     {% endif %}
-   </div>
-   <div class="user-metric-label">{{ label }}</div>
- </div>
