Skip to content

Commit

Permalink
Daily Usage report format value column
Browse files Browse the repository at this point in the history
Also fix small capitalization issue

Change-Id: Ibb32d4181eb00c0fd8856002522d70c1edf33ec0
Closes-Bug: #1304066
  • Loading branch information
clu-7 committed Apr 8, 2014
1 parent 700dc59 commit fa41f0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion openstack_dashboard/dashboards/admin/metering/tables.py
Expand Up @@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.

from django.contrib.humanize.templatetags import humanize
from django.utils import text
from django.utils.translation import ugettext_lazy as _

Expand All @@ -28,7 +29,8 @@ class UsageTable(tables.DataTable):
description = tables.Column('description', verbose_name=_('Description'))
time = tables.Column('time', verbose_name=_('Day'),
filters=[show_date])
value = tables.Column('value', verbose_name=_('Value (Avg)'))
value = tables.Column('value', verbose_name=_('Value (Avg)'),
filters=[humanize.intcomma])

def get_object_id(self, datum):
return datum['time'] + datum['meter']
Expand Down
@@ -1,6 +1,6 @@
{% extends 'base.html' %}
{% load i18n %}
{% block title %}{% trans "Resources usage Overview" %}{% endblock %}
{% block title %}{% trans "Resources Usage Overview" %}{% endblock %}

{% block page_header %}
{% include "horizon/common/_page_header.html" with title=_("Resources Usage Overview")%}
Expand Down

0 comments on commit fa41f0b

Please sign in to comment.