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 %} 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 %} 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 %}.