{% load humanize %}
{% if readthrough.start_date %}
Started reading:
{{ readthrough.start_date | naturalday }}
{% endif %} {% if readthrough.finish_date %}
Finished reading:
{{ readthrough.finish_date | naturalday }}
{% elif readthrough.progress %}
Progress:
{% if readthrough.progress_mode == 'PG' %}
on page {{ readthrough.progress }} of {{ book.pages }}
{% else %}
{{ readthrough.progress }}%
{% endif %}
{% endif %}
{% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Edit read dates" icon="pencil" controls_text="edit-readthrough" controls_uid=readthrough.id focus="edit-readthrough" %}
{% include 'snippets/toggle/toggle_button.html' with class="is-small" text="Delete these read dates" icon="x" controls_text="delete-readthrough" controls_uid=readthrough.id focus="modal-title-delete-readthrough" %}
{% if show_progress %} Progress Updates: {% elif readthrough.progress_updates|length %} Show {{ readthrough.progress_updates|length }} Progress Updates {% endif %}
{% include 'snippets/delete_readthrough_modal.html' with controls_text="delete-readthrough" controls_uid=readthrough.id %}