bookwyrm-mastodon/bookwyrm/templates/snippets/status_content.html

49 lines
1.6 KiB
HTML
Raw Normal View History

2020-04-01 17:32:56 -04:00
{% load fr_display %}
2020-11-02 14:46:23 -05:00
<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>
2020-09-28 20:25:26 -04:00
{% endif %}
2020-04-01 17:32:56 -04:00
2020-11-02 14:46:23 -05:00
{% if status.quote %}
<div class="quote block">
<blockquote>{{ status.quote }}</blockquote>
<p> &mdash; {% include 'snippets/book_titleby.html' with book=status.book %}</p>
2020-04-01 22:38:07 -04:00
</div>
2020-04-01 17:32:56 -04:00
{% endif %}
2020-04-01 22:38:07 -04:00
2020-11-02 14:46:23 -05:00
{% if status.content and status.status_type != 'GeneratedNote' and status.status_type != 'Boost' %}
2020-11-12 14:40:20 -05:00
{% include 'snippets/trimmed_text.html' with full=status.content|safe %}
2020-11-02 14:46:23 -05:00
{% endif %}
2020-11-24 14:28:17 -05:00
{% if status.attachments %}
2020-11-24 15:07:00 -05:00
<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>
2020-11-24 14:28:17 -05:00
</div>
{% endif %}
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 %}