From 89c0ecdca9545a4c8ffcefbb792d0b37ac5a291d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 11 Feb 2021 08:24:20 -0800 Subject: [PATCH] comma in number --- bookwyrm/templates/snippets/goal_progress.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/snippets/goal_progress.html b/bookwyrm/templates/snippets/goal_progress.html index 997fbfbd..43f27f4e 100644 --- a/bookwyrm/templates/snippets/goal_progress.html +++ b/bookwyrm/templates/snippets/goal_progress.html @@ -1,10 +1,11 @@ +{% load humanize %}

{% if goal.progress_percent >= 100 %} Success! {% elif goal.progress_percent %} {{ goal.progress_percent }}% complete! {% endif %} - {% if goal.user == request.user %}You've{% else %}{{ goal.user.display_name }} has{% endif %} read {% if request.path != goal.local_path %}{% endif %}{{ goal.book_count }} of {{ goal.goal }} books{% if request.path != goal.local_path %}{% endif %}. + {% if goal.user == request.user %}You've{% else %}{{ goal.user.display_name }} has{% endif %} read {% if request.path != goal.local_path %}{% endif %}{{ goal.book_count }} of {{ goal.goal | intcomma }} books{% if request.path != goal.local_path %}{% endif %}.