From f2d7efe2ba5130fc9710b7167958f22432775213 Mon Sep 17 00:00:00 2001 From: 0x29a Date: Sun, 29 Jan 2023 18:34:56 +0100 Subject: [PATCH] Remove duplicated readthrough request from comment.html --- bookwyrm/templates/snippets/create_status/comment.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/snippets/create_status/comment.html b/bookwyrm/templates/snippets/create_status/comment.html index 65b322699..1186cc71c 100644 --- a/bookwyrm/templates/snippets/create_status/comment.html +++ b/bookwyrm/templates/snippets/create_status/comment.html @@ -19,9 +19,9 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j {# Supplemental fields #}
{% active_shelf book as active_shelf %} - {% if active_shelf.shelf.identifier == 'reading' and book.latest_readthrough %} - + {% if active_shelf.shelf.identifier == 'reading' %} {% with readthrough=book.latest_readthrough %} + {% if readthrough %}
@@ -66,6 +66,7 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j

{% blocktrans with pages=book.pages %}of {{ pages }} pages{% endblocktrans %}

{% endif %}
+ {% endif %} {% endwith %} {% endif %}