Remove duplicated readthrough request from comment.html

This commit is contained in:
0x29a 2023-01-29 18:34:56 +01:00
parent 6e1418c5d4
commit f2d7efe2ba

View file

@ -19,9 +19,9 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j
{# Supplemental fields #} {# Supplemental fields #}
<div> <div>
{% active_shelf book as active_shelf %} {% 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 %} {% with readthrough=book.latest_readthrough %}
{% if readthrough %}
<div class="field"> <div class="field">
<input type="hidden" name="id" value="{{ readthrough.id }}"/> <input type="hidden" name="id" value="{{ readthrough.id }}"/>
<label class="label" for="progress_{{ uuid }}">{% trans "Progress:" %}</label> <label class="label" for="progress_{{ uuid }}">{% trans "Progress:" %}</label>
@ -66,6 +66,7 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j
<p class="help">{% blocktrans with pages=book.pages %}of {{ pages }} pages{% endblocktrans %}</p> <p class="help">{% blocktrans with pages=book.pages %}of {{ pages }} pages{% endblocktrans %}</p>
{% endif %} {% endif %}
</div> </div>
{% endif %}
{% endwith %} {% endwith %}
{% endif %} {% endif %}
</div> </div>