Permalink
Browse files

Merge "Made quota names prettier. Fixed bug 979417."

  • Loading branch information...
2 parents 35cac44 + ac0b1f4 commit 13a356e0eddf8a2e386a88a1a1c4cf7d0ac67d72 Jenkins committed with openstack-gerrit Apr 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 horizon/dashboards/syspanel/quotas/tables.py
@@ -20,8 +20,12 @@ def comp(tenant):
return filter(comp, tenants)
+def get_quota_name(quota):
+ return quota.name.replace("_", " ").title()
+
+
class QuotasTable(tables.DataTable):
- name = tables.Column('name', verbose_name=_('Quota Name'))
+ name = tables.Column(get_quota_name, verbose_name=_('Quota Name'))
limit = tables.Column("limit", verbose_name=_('Limit'))
def get_object_id(self, obj):

0 comments on commit 13a356e

Please sign in to comment.