2020-12-13 02:25:04 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2020-11-02 19:46:23 +00:00
|
|
|
<div class="block">
|
2021-02-25 23:05:51 +00:00
|
|
|
{% if status.status_type == 'Review' or status.status_type == 'Rating' %}
|
2020-12-17 04:10:50 +00:00
|
|
|
<div>
|
2021-03-03 19:10:09 +00:00
|
|
|
{% if status.name %}
|
2021-03-03 21:58:01 +00:00
|
|
|
<h3 class="title is-5 has-subtitle" dir="auto">
|
|
|
|
{{ status.name|escape }}
|
2020-12-17 04:10:50 +00:00
|
|
|
</h3>
|
2021-03-03 19:10:09 +00:00
|
|
|
{% endif %}
|
|
|
|
{% include 'snippets/stars.html' with rating=status.rating %}
|
2020-12-17 04:10:50 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-12-17 03:50:36 +00:00
|
|
|
{% if status.content_warning %}
|
2021-01-17 19:15:53 +00:00
|
|
|
<div>
|
2020-12-17 03:50:36 +00:00
|
|
|
<p>{{ status.content_warning }}</p>
|
2021-03-01 01:10:30 +00:00
|
|
|
{% trans "Show more" as button_text %}
|
|
|
|
{% include 'snippets/toggle/open_button.html' with text=button_text class="is-small" controls_text="show-status-cw" controls_uid=status.id %}
|
2020-12-17 03:50:36 +00:00
|
|
|
</div>
|
2020-09-29 00:25:26 +00:00
|
|
|
{% endif %}
|
2021-01-17 19:15:53 +00:00
|
|
|
|
|
|
|
<div{% if status.content_warning %} class="hidden" id="show-status-cw-{{ status.id }}"{% endif %}>
|
2020-12-17 03:50:36 +00:00
|
|
|
{% if status.content_warning %}
|
2021-03-01 01:10:30 +00:00
|
|
|
{% trans "Show less" as button_text %}
|
|
|
|
{% include 'snippets/toggle/close_button.html' with text=button_text class="is-small" controls_text="show-status-cw" controls_uid=status.id %}
|
2020-12-17 03:50:36 +00:00
|
|
|
{% endif %}
|
2020-04-01 21:32:56 +00:00
|
|
|
|
2020-12-17 03:50:36 +00:00
|
|
|
{% if status.quote %}
|
|
|
|
<div class="quote block">
|
2021-01-06 19:59:59 +00:00
|
|
|
<blockquote dir="auto">{{ status.quote | safe }}</blockquote>
|
2020-04-02 02:38:07 +00:00
|
|
|
|
2020-12-17 03:50:36 +00:00
|
|
|
<p> — {% include 'snippets/book_titleby.html' with book=status.book %}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-03-03 04:17:32 +00:00
|
|
|
{% if status.content and status.status_type != 'GeneratedNote' and status.status_type != 'Announce' %}
|
2021-03-18 16:15:47 +00:00
|
|
|
{% include 'snippets/trimmed_text.html' with full=status.content|safe no_trim=status.content_warning %}
|
2020-12-17 03:50:36 +00:00
|
|
|
{% endif %}
|
2021-03-03 21:58:01 +00:00
|
|
|
{% if status.attachments.exists %}
|
2020-12-17 03:50:36 +00:00
|
|
|
<div class="block">
|
|
|
|
<div class="columns">
|
|
|
|
{% for attachment in status.attachments.all %}
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<figure class="image is-128x128">
|
2021-02-28 02:48:10 +00:00
|
|
|
<a href="/images/{{ attachment.image }}" target="_blank" aria-label="{% trans 'Open image in new window' %}">
|
2020-12-22 16:26:02 +00:00
|
|
|
<img src="/images/{{ attachment.image }}"{% if attachment.caption %} alt="{{ attachment.caption }}" title="{{ attachment.caption }}"{% endif %}>
|
2020-12-17 03:50:36 +00:00
|
|
|
</a>
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-11-24 20:07:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-17 03:50:36 +00:00
|
|
|
{% endif %}
|
2020-11-24 19:28:17 +00:00
|
|
|
</div>
|
2020-04-01 21:32:56 +00:00
|
|
|
</div>
|
|
|
|
|
2020-11-02 21:41:43 +00:00
|
|
|
{% if not hide_book %}
|
|
|
|
{% if status.book or status.mention_books.count %}
|
2021-01-07 03:52:47 +00:00
|
|
|
<div class="{% if status.status_type != 'GeneratedNote' %}box has-background-white-bis{% endif %}">
|
2020-11-02 19:46:23 +00:00
|
|
|
{% if status.book %}
|
2021-02-23 21:42:20 +00:00
|
|
|
{% include 'snippets/status/book_preview.html' with book=status.book %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% elif status.mention_books.count %}
|
2021-02-23 21:42:20 +00:00
|
|
|
{% include 'snippets/status/book_preview.html' with book=status.mention_books.first %}
|
2020-11-02 19:46:23 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-11-02 21:41:43 +00:00
|
|
|
{% endif %}
|