{% load bookwyrm_tags %} {% load markdown %} {% load i18n %} {% load static %} {% with status_type=status.status_type %}
{% if not hide_book %} {% with book=status.book|default:status.mention_books.first %} {% if book %}
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-s-mobile is-h-l-tablet' size_mobile='medium' size='large' %} {% include 'snippets/stars.html' with rating=book|rating:request.user %} {% include 'snippets/shelve_button/shelve_button.html' with book=book %}

{{ book|book_description|to_markdown|default:""|safe|truncatewords_html:15 }}

{% endif %} {% endwith %} {% endif %}
{% if status_type == 'Review' %}

{{ status.name|escape }}

{% include 'snippets/stars.html' with rating=status.rating %}

{% endif %} {% if status.content_warning %}

{{ status.content_warning }}

{% trans "Show more" as button_text %} {% with text=button_text class="is-small" controls_text="show_status_cw" controls_uid=status.id %} {% include 'snippets/toggle/open_button.html' %} {% endwith %}
{% endif %}
{% endwith %}