diff options
author | Matt Joyce <matt.joyce@cloudscaling.com> | 2012-08-15 14:54:26 -0700 |
---|---|---|
committer | Matt Joyce <matt.joyce@cloudscaling.com> | 2012-08-15 15:33:51 -0700 |
commit | 705aef0ef5b655e471b21cefef04fe3094365992 (patch) | |
tree | f02fba11a953390970f0f3761327c26b9445ef94 /horizon/templates/horizon/common/_quota_summary.html | |
parent | d854ea0f55248fa58b8034a2046fa7337c491cef (diff) | |
download | tuskar-ui-705aef0ef5b655e471b21cefef04fe3094365992.tar.gz |
Bug #1018560 Adding quota display to Overview template
Change-Id: I8b7d5070dade4f0caae0ca9794a169cfc15b985f
Diffstat (limited to 'horizon/templates/horizon/common/_quota_summary.html')
-rw-r--r-- | horizon/templates/horizon/common/_quota_summary.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/horizon/templates/horizon/common/_quota_summary.html b/horizon/templates/horizon/common/_quota_summary.html new file mode 100644 index 00000000..b4ad64bf --- /dev/null +++ b/horizon/templates/horizon/common/_quota_summary.html @@ -0,0 +1,13 @@ +{% load i18n horizon humanize sizeformat %} + +<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.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.quota.ram.used|intcomma }} MB </span>{% trans "of" %}<span> {{ usage.quota.ram.quota|intcomma }} MB </span>{% trans "Available Memory" %} </strong> + {% horizon_progress_bar usage.quota.ram.used usage.quota.ram.quota %} +</div> |