summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Farkas <ifarkas@redhat.com>2013-07-29 13:18:26 +0200
committerTomas Sedovic <tomas@sedovic.cz>2013-08-01 16:18:58 +0200
commit3833c8de38c4d76f6a9f75ed3b3d4c7d14145419 (patch)
treee4454e03e7bf1e820ca7300b5093255f930fb2ad
parentcafec006cce7566d7745d69287248e88453b20ce (diff)
downloadtuskar-ui-3833c8de38c4d76f6a9f75ed3b3d4c7d14145419.tar.gz
Fix "Summary of instances and Usage" chart labels
Change-Id: I9f8dc3b8dfe2efe884a1fd93bcb7343d041b9c1a
-rw-r--r--openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/nodes/_detail_overview.html4
-rw-r--r--openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/racks/_detail_overview.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/nodes/_detail_overview.html b/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/nodes/_detail_overview.html
index f4cad731..7dc6d457 100644
--- a/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/nodes/_detail_overview.html
+++ b/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/nodes/_detail_overview.html
@@ -190,12 +190,12 @@
{% endfor %}
</tr>
<tr>
- {% for flavor in resource_class.list_flavors %}
+ {% for flavor in node.list_flavors %}
<td class="modal_chart flavor_usage_text"><a href="{{ "#" }}">{{ flavor.used_instances }}%</a></td>
{% endfor %}
</tr>
<tr>
- {% for flavor in resource_class.list_flavors %}
+ {% for flavor in node.list_flavors %}
<td class="flavor_usage_text">{{ flavor.used_instances }} inst.</td>
{% endfor %}
</tr>
diff --git a/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/racks/_detail_overview.html b/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/racks/_detail_overview.html
index d6bee9a5..3292f5a4 100644
--- a/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/racks/_detail_overview.html
+++ b/openstack_dashboard/dashboards/infrastructure/resource_management/templates/resource_management/racks/_detail_overview.html
@@ -141,12 +141,12 @@
{% endfor %}
</tr>
<tr>
- {% for flavor in resource_class.list_flavors %}
+ {% for flavor in rack.list_flavors %}
<td class="modal_chart flavor_usage_text"><a href="{{ "#" }}">{{ flavor.used_instances }}%</a></td>
{% endfor %}
</tr>
<tr>
- {% for flavor in resource_class.list_flavors %}
+ {% for flavor in rack.list_flavors %}
<td class="flavor_usage_text">{{ flavor.used_instances }} inst.</td>
{% endfor %}
</tr>