mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user