Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number formatting for large numbers #2368

Open
edent opened this issue Jun 8, 2024 · 0 comments
Open

Number formatting for large numbers #2368

edent opened this issue Jun 8, 2024 · 0 comments

Comments

@edent
Copy link
Contributor

edent commented Jun 8, 2024

Issue and Steps to Reproduce

On pages like https://candidates.democracyclub.org.uk/leaderboard it is quite hard to parse large numbers.

Screenshots

Screenshot 2024-06-08 at 16-00-05 Top Users

Expected

I'd expect 1234 to be formatted as 1,234

Additional Details

I think this can be fixed. For example:

If I've understood the Django template correctly, can be replaced with:

{% load humanize %}
{{  row.edit_count|intcomma }}

That should probably be used any time there's a number which could be >1,000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant