Count of orgs and live services for platform admin

This makes it consistent that an option which contains more options has
a hint about how many options it contains.

Also adds a formatter to get us ready for 1,000 services 🎉
This commit is contained in:
Chris Hill-Scott
2019-07-08 12:00:40 +01:00
parent c709d7668e
commit 6d5f542a88
8 changed files with 38 additions and 5 deletions

View File

@@ -345,6 +345,10 @@ def format_delta(date):
)
def format_thousands(number):
return "{:,.0f}".format(number)
def valid_phone_number(phone_number):
try:
validate_phone_number(phone_number)
@@ -688,6 +692,7 @@ def add_template_filters(application):
formatted_list,
nl2br,
format_phone_number_human_readable,
format_thousands,
id_safe,
]:
application.add_template_filter(fn)