improve project view table (#2441)

This commit is contained in:
Kevin Papst
2021-03-16 15:59:31 +01:00
committed by GitHub
parent 16e8e8a5e5
commit 954ba7c937
8 changed files with 61 additions and 25 deletions

View File

@@ -21,15 +21,19 @@
{% endif %}
<div class="progress-group">
<span class="progress-text">{{ title }}{% if percentReached >= 0 and subTitle is not empty %} &ndash; {{ percentReached|number_format(2) }}%{% endif %}</span>
<span class="progress-number">
{% if percentReached >= 0 and subTitle is empty %}
{{ percentReached|number_format(2) }}%
{% elseif subTitle is not empty %}
{{ subTitle }}
{% endif %}
</span>
<div class="progress-title">
<span class="progress-text">
{{ title }}
{% if percentReached >= 0 and subTitle is not empty %} &ndash; {{ percentReached|number_format(2) }}%{% endif %}
</span>
<span class="progress-number">
{% if percentReached >= 0 and subTitle is empty %}
{{ percentReached|number_format(2) }}%
{% elseif subTitle is not empty %}
{{ subTitle }}
{% endif %}
</span>
</div>
<div class="progress">
<div class="progress-bar {{ class }}" role="progressbar" aria-valuenow="{{ width }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ width }}%"></div>
</div>