2020-12-12 21:25:04 -05:00
|
|
|
{% load bookwyrm_tags %}
|
2020-11-02 14:46:23 -05:00
|
|
|
<div class="block">
|
2020-12-16 23:10:50 -05:00
|
|
|
{% if status.status_type == 'Review' %}
|
|
|
|
<div>
|
|
|
|
<h3 class="title is-5 has-subtitle">
|
|
|
|
{% if status.name %}{{ status.name }}<br>{% endif %}
|
|
|
|
</h3>
|
|
|
|
<p class="subtitle">{% include 'snippets/stars.html' with rating=status.rating %}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-12-16 22:50:36 -05:00
|
|
|
{% if status.content_warning %}
|
|
|
|
<div class="toggle-content">
|
|
|
|
<p>{{ status.content_warning }}</p>
|
|
|
|
<input class="toggle-control" type="radio" name="toggle-status-cw-{{ status.id }}" id="hide-status-cw-{{ status.id }}" checked>
|
|
|
|
<div class="toggle-content hidden">
|
|
|
|
<label class="button is-small" for="show-status-cw-{{ status.id }}" tabindex="0" role="button">Show More</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input class="toggle-control" type="radio" name="toggle-status-cw-{{ status.id }}" id="show-status-cw-{{ status.id }}">
|
2020-09-28 20:25:26 -04:00
|
|
|
{% endif %}
|
2020-12-16 22:50:36 -05:00
|
|
|
<div{% if status.content_warning %} class="toggle-content hidden"{% endif %}>
|
|
|
|
{% if status.content_warning %}
|
|
|
|
<label class="button is-small" for="hide-status-cw-{{ status.id }}" tabindex="0" role="button">Show Less</label>
|
|
|
|
{% endif %}
|
2020-04-01 17:32:56 -04:00
|
|
|
|
2020-12-16 22:50:36 -05:00
|
|
|
{% if status.quote %}
|
|
|
|
<div class="quote block">
|
2020-12-19 21:54:56 -05:00
|
|
|
<blockquote>{{ status.quote | safe }}</blockquote>
|
2020-04-01 22:38:07 -04:00
|
|
|
|
2020-12-16 22:50:36 -05:00
|
|
|
<p> — {% include 'snippets/book_titleby.html' with book=status.book %}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if status.content and status.status_type != 'GeneratedNote' and status.status_type != 'Boost' %}
|
|
|
|
{% include 'snippets/trimmed_text.html' with full=status.content|safe %}
|
|
|
|
{% endif %}
|
|
|
|
{% if status.attachments %}
|
|
|
|
<div class="block">
|
|
|
|
<div class="columns">
|
|
|
|
{% for attachment in status.attachments.all %}
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<figure class="image is-128x128">
|
|
|
|
<a href="/images/{{ attachment.image }}" target="_blank" aria-label="open image in new window">
|
2020-12-22 11:26:02 -05:00
|
|
|
<img src="/images/{{ attachment.image }}"{% if attachment.caption %} alt="{{ attachment.caption }}" title="{{ attachment.caption }}"{% endif %}>
|
2020-12-16 22:50:36 -05:00
|
|
|
</a>
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-11-24 15:07:00 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-16 22:50:36 -05:00
|
|
|
{% endif %}
|
2020-11-24 14:28:17 -05:00
|
|
|
</div>
|
2020-04-01 17:32:56 -04:00
|
|
|
</div>
|
|
|
|
|
2020-11-02 16:41:43 -05:00
|
|
|
{% if not hide_book %}
|
|
|
|
{% if status.book or status.mention_books.count %}
|
2020-11-02 14:46:23 -05:00
|
|
|
<div class="{% if status.status_type != 'GeneratedNote' %}box{% endif %}">
|
|
|
|
{% if status.book %}
|
|
|
|
{% include 'snippets/book_preview.html' with book=status.book %}
|
|
|
|
{% elif status.mention_books.count %}
|
|
|
|
{% include 'snippets/book_preview.html' with book=status.mention_books.first %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-11-02 16:41:43 -05:00
|
|
|
{% endif %}
|