Merge "Correct the create volume snapshot description and used of quota"

This commit is contained in:
Jenkins 2017-07-14 03:32:08 +00:00 committed by Gerrit Code Review
commit 2b0147fad9
2 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@
<h3>{% trans "Description:" %}</h3>
<p>{% blocktrans %}Volumes are block devices that can be attached to instances.{% endblocktrans %}</p>
<p>{% block title %}{% trans "Volumes are block devices that can be attached to instances." %}{% endblock %}</p>
<div id="id_show_volume_type_desc_div">
<h3>{% trans "Volume Type Description:" %}</h3>
@ -39,7 +39,9 @@
<strong>{% block type_title %}{% trans "Number of Volumes" %}{% endblock %}</strong>
</div>
<span class="pull-right">
{% block used_of_quota %}
{% blocktrans with used=usages.volumesUsed|intcomma quota=usages.maxTotalVolumes|intcomma|quotainf %}{{ used }} of {{ quota }} Used{% endblocktrans %}
{% endblock %}
</span>
</div>

View File

@ -21,12 +21,8 @@
{% trans "Number of Snapshots" %}
{% endblock %}
{% block used %}
{{ usages.snapshotsUsed|intcomma }}
{% endblock %}
{% block total %}
{{ usages.maxTotalSnapshots|intcomma|quota }}
{% block used_of_quota %}
{% blocktrans with used=usages.snapshotsUsed|intcomma quota=usages.maxTotalSnapshots|intcomma|quotainf %}{{ used }} of {{ quota }} Used{% endblocktrans %}
{% endblock %}
{% block type_id %}