2020-04-01 17:32:56 -04:00
|
|
|
{% load fr_display %}
|
|
|
|
|
2020-09-28 20:25:26 -04:00
|
|
|
<div class="media">
|
|
|
|
{% if not hide_book and status.mention_books.count %}
|
|
|
|
<div class="media-left">
|
2020-09-28 21:25:05 -04:00
|
|
|
{% for book in status.mention_books.all|slice:"0:4" %}
|
2020-09-28 20:25:26 -04:00
|
|
|
<div>
|
2020-09-29 23:01:57 -04:00
|
|
|
<a href="/book/{{ book.id }}">{% include 'snippets/book_cover.html' with book=book %}</a>
|
2020-09-28 21:25:05 -04:00
|
|
|
{% if status.mention_books.count > 1 %}
|
|
|
|
<p>{% include 'snippets/book_titleby.html' with book=book %}</p>
|
2020-04-01 22:38:07 -04:00
|
|
|
{% endif %}
|
2020-09-28 21:25:05 -04:00
|
|
|
{% include 'snippets/shelve_button.html' with book=book %}
|
2020-04-01 22:38:07 -04:00
|
|
|
</div>
|
2020-09-28 21:25:05 -04:00
|
|
|
{% endfor %}
|
2020-04-01 22:38:07 -04:00
|
|
|
</div>
|
2020-09-28 20:25:26 -04:00
|
|
|
{% endif %}
|
2020-04-01 17:32:56 -04:00
|
|
|
|
2020-04-01 22:38:07 -04:00
|
|
|
{% if not hide_book and status.book %}
|
2020-09-28 18:57:31 -04:00
|
|
|
<div class="media-left">
|
2020-09-28 21:25:05 -04:00
|
|
|
<div>
|
2020-09-29 23:01:57 -04:00
|
|
|
<a href="/book/{{ status.book.id }}">{% include 'snippets/book_cover.html' with book=status.book %}</a>
|
2020-04-01 22:38:07 -04:00
|
|
|
{% include 'snippets/shelve_button.html' with book=status.book %}
|
2020-09-28 21:25:05 -04:00
|
|
|
</div>
|
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-09-28 18:57:31 -04:00
|
|
|
<div class="media-content">
|
2020-04-01 22:38:07 -04:00
|
|
|
{% if status.status_type == 'Review' %}
|
|
|
|
<h3>
|
2020-04-04 13:38:26 -04:00
|
|
|
{% if status.name %}{{ status.name }}<br>{% endif %}
|
2020-04-03 16:36:56 -04:00
|
|
|
{% include 'snippets/stars.html' with rating=status.rating %}
|
2020-04-01 22:38:07 -04:00
|
|
|
</h3>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-04-08 12:40:47 -04:00
|
|
|
{% if status.quote %}
|
2020-09-29 17:45:04 -04:00
|
|
|
<div class="quote block">
|
2020-04-08 12:40:47 -04:00
|
|
|
<blockquote>{{ status.quote }}</blockquote>
|
|
|
|
|
|
|
|
<p> — {% include 'snippets/book_titleby.html' with book=status.book %}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-09-28 21:25:05 -04:00
|
|
|
{% if status.content and status.status_type != 'GeneratedNote' and status.status_type != 'Boost' %}
|
2020-04-01 22:38:07 -04:00
|
|
|
<blockquote>{{ status.content | safe }}</blockquote>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-09-28 21:25:05 -04:00
|
|
|
{% if status.mention_books.count == 1 and not status.book %}
|
|
|
|
{% include 'snippets/book_description.html' with book=status.mention_books.first %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-04-04 13:38:26 -04:00
|
|
|
{% if not status.content and status.book and not hide_book and status.status_type != 'Boost' %}
|
|
|
|
{% include 'snippets/book_description.html' with book=status.book %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-04-01 22:38:07 -04:00
|
|
|
{% if status.status_type == 'Boost' %}
|
|
|
|
{% include 'snippets/status_content.html' with status=status|boosted_status %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-05-12 21:56:28 -04:00
|
|
|
{% if not max_depth and status.reply_parent or status|replies %}<p><a href="{{ status.remote_id }}">Thread</a>{% endif %}
|
2020-04-01 22:38:07 -04:00
|
|
|
</div>
|
2020-04-01 17:32:56 -04:00
|
|
|
</div>
|
|
|
|
|