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