v1
This commit is contained in:
@@ -44,6 +44,28 @@
|
||||
<div class="text-muted small">Storage used</div>
|
||||
<div class="fs-4 fw-bold">{{ stats['storage_human'] }}</div>
|
||||
<div class="text-muted small">({{ stats['storage_bytes'] }} bytes)</div>
|
||||
{% if stats.get('storage_max_human') %}
|
||||
<div class="text-muted small mt-1">
|
||||
Limit: <strong>{{ stats['storage_max_human'] }}</strong>
|
||||
{% if stats.get('storage_used_percent') is not none %}
|
||||
— Used: <strong>{{ stats['storage_used_percent'] }}%</strong>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if stats.get('storage_used_percent') is not none %}
|
||||
<div class="progress mt-1" style="height: 8px;">
|
||||
<div
|
||||
class="progress-bar {% if stats['storage_used_percent'] >= 100 %}bg-danger{% elif stats['storage_used_percent'] >= 90 %}bg-warning{% else %}bg-success{% endif %}"
|
||||
role="progressbar"
|
||||
style="width: {{ [stats['storage_used_percent'], 100]|min }}%"
|
||||
aria-valuenow="{{ stats['storage_used_percent'] }}"
|
||||
aria-valuemin="0"
|
||||
aria-valuemax="100"
|
||||
></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="text-muted small mt-1">Limit: <strong>Unlimited</strong></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user