Skip to content

Commit

Permalink
Made quota names prettier. Fixed bug 979417.
Browse files Browse the repository at this point in the history
Change-Id: Iaf87fa6d18d4c7c9309d1e60c3d8daf77f7ddfca
  • Loading branch information
gabrielhurley authored and treshenry committed May 10, 2012
1 parent 7b959c2 commit 7a53d28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion horizon/dashboards/syspanel/quotas/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7a53d28

Please sign in to comment.