forked from mirrors/bookwyrm
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{% load fr_display %}
|
|
<div class="block">
|
|
{% if status.status_type == 'Review' %}
|
|
<h3>
|
|
{% if status.name %}{{ status.name }}<br>{% endif %}
|
|
{% include 'snippets/stars.html' with rating=status.rating %}
|
|
</h3>
|
|
{% endif %}
|
|
|
|
{% if status.quote %}
|
|
<div class="quote block">
|
|
<blockquote>{{ status.quote }}</blockquote>
|
|
|
|
<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">
|
|
<img src="/images/{{ attachment.image }}" alt="{{ attachment.caption }}">
|
|
</a>
|
|
</figure>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if not hide_book %}
|
|
{% if status.book or status.mention_books.count %}
|
|
<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 %}
|
|
{% endif %}
|