Skip to content

Commit

Permalink
Fix bug 1055929 - Can not display usage data for Quota Summary.
Browse files Browse the repository at this point in the history
Change-Id: I051e97f14375714d22303ad44a9f0b16aa7d6c51
  • Loading branch information
Kylin-CG authored and sorrison committed Nov 28, 2012
1 parent 7f038bd commit 9060885
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions horizon/templates/horizon/common/_quota_summary.html
Expand Up @@ -2,12 +2,12 @@

<div class="quota-dynamic">
<h3>{% trans "Quota Summary" %}</h3>
<strong>{% trans "Used" %}<span> {{ usage.quota.instances.used|intcomma }} </span> {% trans "of" %} <span> {{ usage.quota.instances.quota|intcomma }} </span>{% trans "Available Instances" %} </strong>
{% horizon_progress_bar usage.quota.instances.used usage.quota.instances.quota %}
<strong>{% trans "Used" %}<span> {{ usage.quotas.instances.used|intcomma }} </span> {% trans "of" %} <span> {{ usage.quotas.instances.quota|intcomma }} </span>{% trans "Available Instances" %} </strong>
{% horizon_progress_bar usage.quotas.instances.used usage.quotas.instances.quota %}

<strong>{% trans "Used" %} <span> {{ usage.quota.cores.used|intcomma }} </span>{% trans "of" %}<span> {{ usage.quota.cores.quota|intcomma }} </span>{% trans "Available vCPUs" %} </strong>
{% horizon_progress_bar usage.quota.cores.used usage.quota.cores.quota %}
<strong>{% trans "Used" %} <span> {{ usage.quotas.cores.used|intcomma }} </span>{% trans "of" %}<span> {{ usage.quotas.cores.quota|intcomma }} </span>{% trans "Available vCPUs" %} </strong>
{% horizon_progress_bar usage.quotas.cores.used usage.quotas.cores.quota %}

<strong>{% trans "Used" %} <span> {{ usage.quota.ram.used|intcomma }} MB </span>{% trans "of" %}<span> {{ usage.quota.ram.quota|intcomma }} MB </span>{% trans "Available RAM" %} </strong>
{% horizon_progress_bar usage.quota.ram.used usage.quota.ram.quota %}
<strong>{% trans "Used" %} <span> {{ usage.quotas.ram.used|intcomma }} MB </span>{% trans "of" %}<span> {{ usage.quotas.ram.quota|intcomma }} MB </span>{% trans "Available RAM" %} </strong>
{% horizon_progress_bar usage.quotas.ram.used usage.quotas.ram.quota %}
</div>

0 comments on commit 9060885

Please sign in to comment.