{% load bookwyrm_tags %} {% load i18n %}
{% csrf_token %} {% if type == 'review' %}
{% endif %}
{% if type != 'reply' and type != 'direct' %} {% endif %} {% if type == 'review' %}
{% trans "Rating" %} {% include 'snippets/form_rate_stars.html' with book=book type=type|default:'summary' default_rating=draft.rating %}
{% endif %} {% if type == 'quotation' %} {% else %} {% include 'snippets/content_warning_field.html' with parent_status=status %} {% endif %}
{% if type == 'quotation' %}
{% include 'snippets/content_warning_field.html' with parent_status=status %}
{% elif type == 'comment' %}
{% active_shelf book as active_shelf %} {% if active_shelf.shelf.identifier == 'reading' and book.latest_readthrough %} {% with readthrough=book.latest_readthrough %}
{% if readthrough.progress_mode == 'PG' and book.pages %}

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

{% endif %}
{% endwith %} {% endif %}
{% endif %} {# bottom bar #}
{% trans "Include spoiler alert" as button_text %} {% firstof draft.content_warning status.content_warning as pressed %} {% include 'snippets/toggle/toggle_button.html' with text=button_text icon="warning is-size-4" controls_text="spoilers" controls_uid=uuid focus="id_content_warning" checkbox="id_show_spoilers" class="toggle-button" pressed=pressed %}
{% if type == 'direct' %} {% else %} {% if draft %} {% include 'snippets/privacy_select.html' with current=draft.privacy %} {% else %} {% include 'snippets/privacy_select.html' with current=reply_parent.privacy %} {% endif %} {% endif %}