{% load i18n horizon humanize bootstrap %}

{% block head %}{% trans "Volume Limits" %}{% endblock %}

{% trans "Total Gibibytes" %} ({% block gigabytes_used %}{{ usages.gigabytesUsed|intcomma }}{% endblock %} {% trans "GiB" %})
{{ usages.maxTotalVolumeGigabytes|intcomma|quota:_("GiB") }}
{{ minifyspace }}
{% widthratio usages.gigabytesUsed usages.maxTotalVolumeGigabytes 100 as gigabytes_percent %} {% bs_progress_bar gigabytes_percent 0 %}
{{ endminifyspace }}
{% block type_title %}{% trans "Number of Volumes" %}{% endblock %} ({% block used %}{{ usages.volumesUsed|intcomma }}{% endblock %})
{% block total %}{{ usages.maxTotalVolumes|intcomma|quota }}{% endblock %}
{{ minifyspace }}
{% widthratio usages.volumesUsed usages.maxTotalVolumes 100 as volumes_percent %} {% if usages.numRequestedItems %} {% widthratio 100 usages.maxTotalVolumes usages.numRequestedItems as single_step %} {% else %} {% widthratio 100 usages.maxTotalVolumes 1 as single_step %} {% endif %} {% bs_progress_bar volumes_percent single_step %}
{{ endminifyspace }}