From 89c0ecdca9545a4c8ffcefbb792d0b37ac5a291d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 11 Feb 2021 08:24:20 -0800 Subject: [PATCH 1/3] 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 997fbfbdf..43f27f4ee 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 %}.

From 403cc712c5f7faaa8793b8eb487aa14e470e1106 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 12 Feb 2021 09:55:25 -0800 Subject: [PATCH 2/3] Fixes review pluralization --- bookwyrm/templates/book.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index 1d8b5d35b..c174116e7 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -103,7 +103,7 @@
-

{% include 'snippets/stars.html' with rating=rating %} ({{ review_count }} review{{ reviews|length|pluralize }})

+

{% include 'snippets/stars.html' with rating=rating %} ({{ review_count }} review{{ review_count|pluralize }})

{% include 'snippets/trimmed_text.html' with full=book|book_description %} From 03dddaa06470fbded51398ebeb8be3ad0524c2bb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 12 Feb 2021 09:58:57 -0800 Subject: [PATCH 3/3] Fixes list display --- bookwyrm/templates/lists/list_items.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/lists/list_items.html b/bookwyrm/templates/lists/list_items.html index 87b195edb..a487bbd6c 100644 --- a/bookwyrm/templates/lists/list_items.html +++ b/bookwyrm/templates/lists/list_items.html @@ -8,7 +8,7 @@ {{ list.name }} {% include 'snippets/privacy-icons.html' with item=list %} -
+
{% for book in list.listitem_set.all|slice:5 %} {% include 'snippets/book_cover.html' with book=book.book size="small" %} {% endfor %}