{% load i18n horizon humanize bootstrap tionix_tags %}

{% trans "Description:" %}

{% block title %}{% trans "Volumes are block devices that can be attached to instances." %}{% endblock %}

{% block description %}

{% trans "Volume Type Description:" %}

{% endblock %}

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

{% trans "Total Gibibytes" %}
{% with quota=usages.maxTotalVolumeGigabytes used=usages.totalGigabytesUsed|intcomma %} {% if quota|quotainf != '-1' %} {% blocktrans with quota=quota|intcomma %}{{ used }} of {{ quota }} GiB Used{% endblocktrans %} {% else %} {% blocktrans %}{{ used }} GiB Used (No Limit){% endblocktrans %} {% endif %} {% endwith %}
{{ minifyspace }}
{% widthratio usages.totalGigabytesUsed usages.maxTotalVolumeGigabytes 100 as gigabytes_percent %} {% bs_progress_bar gigabytes_percent 0 %}
{{ endminifyspace }}
{% block type_title %}{% trans "Number of Volumes" %}{% endblock %}
{% block used_of_quota %} {% with quota=usages.maxTotalVolumes used=usages.totalVolumesUsed|intcomma %} {% if quota|quotainf != '-1' %} {% blocktrans with quota=quota|intcomma %}{{ used }} of {{ quota }} Used{% endblocktrans %} {% else %} {% blocktrans %}{{ used }} Used (No Limit){% endblocktrans %} {% endif %} {% endwith %} {% endblock %}
{{ minifyspace }}
{% block show_progress_bar %} {% widthratio usages.totalVolumesUsed 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 %} {% endblock %}
{{ endminifyspace }}