Commit 64bafc82 by Fukász Rómeó Ervin

dashboard: enhance storage list table percent

parent a97fd1bc
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-stripped"
role="progressbar" style="min-width: 30px; width: {{ record.used_percent }}%">
{{ record.used_percent }}%
{% with record.used_percent as used_percent %}
<div class="progress-bar progress-bar-stripped
{% if used_percent < 80 %}progress-bar-success
{% elif used_percent < 90 %}progress-bar-warning
{% else %}progress-bar-danger{% endif %}"
role="progressbar" style="min-width: 30px; width: {{ used_percent }}%">
{{ used_percent }}%
</div>
{% endwith %}
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment