Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
{% set percentDecimals = options['decimals'] ?? 1 %}
|
||||
{% set transPercentOpen = options['trans_percent_open'] ?? 'stats.percentUsedLeft' %}
|
||||
{% set transPercentSpent = options['trans_percent_spent'] ?? 'stats.percentUsed' %}
|
||||
{% set outerClass = options['class'] ?? '' %}
|
||||
{% if formatter == 'duration' %}
|
||||
{% set currentFormatted = current|duration %}
|
||||
{% set maxFormatted = max|duration %}
|
||||
@@ -31,12 +32,12 @@
|
||||
{% set width = 100 %}
|
||||
{% endif %}
|
||||
|
||||
<div class="progress-group">
|
||||
<div class="progress-group {{ outerClass }}">
|
||||
<div class="progress-title">
|
||||
<span class="progress-text">
|
||||
{{ currentFormatted }}
|
||||
</span>
|
||||
<span class="progress-number">
|
||||
<span class="progress-number text-end">
|
||||
<strong>
|
||||
{{ maxFormatted }}
|
||||
</strong>
|
||||
@@ -70,7 +71,7 @@
|
||||
{{ title }}
|
||||
{% if percentReached >= 0 and subTitle is not empty %} – {{ percentReached|number_format(2) }}%{% endif %}
|
||||
</span>
|
||||
<span class="progress-number">
|
||||
<span class="progress-number text-end">
|
||||
{% if percentReached >= 0 and subTitle is empty %}
|
||||
{{ percentReached|number_format(2) }}%
|
||||
{% elseif subTitle is not empty %}
|
||||
|
||||
Reference in New Issue
Block a user