Open edent opened 1 month ago
On pages like https://candidates.democracyclub.org.uk/leaderboard it is quite hard to parse large numbers.
I'd expect 1234 to be formatted as 1,234
1234
1,234
I think this can be fixed. For example:
https://github.com/DemocracyClub/yournextrepresentative/blob/786472ea0b8bc33b0edccfa4e0c03bc599b9716c/ynr/apps/candidates/templates/candidates/leaderboard.html#L29
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.
Issue and Steps to Reproduce
On pages like https://candidates.democracyclub.org.uk/leaderboard it is quite hard to parse large numbers.
Screenshots
Expected
I'd expect
1234
to be formatted as1,234
Additional Details
I think this can be fixed. For example:
https://github.com/DemocracyClub/yournextrepresentative/blob/786472ea0b8bc33b0edccfa4e0c03bc599b9716c/ynr/apps/candidates/templates/candidates/leaderboard.html#L29
If I've understood the Django template correctly, can be replaced with:
That should probably be used any time there's a number which could be >1,000.