moviewyrm/fedireads/templates/snippets/status_content.html

53 lines
1.8 KiB
HTML
Raw Normal View History

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 %}
{% 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-04-02 02:38:07 +00:00
<div class="row">
{% if not hide_book and status.book %}
<div class="cover-container">
{% include 'snippets/book_cover.html' with book=status.book %}
{% 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
<div>
{% if status.status_type == 'Review' %}
<h3>
{{ status.name }}<br>
{% include 'snippets/stars.html' with rating=status.rating %}
2020-04-02 02:38:07 +00:00
</h3>
{% endif %}
{% if status.status_type != 'Update' and status.status_type != 'Boost' %}
<blockquote>{{ status.content | safe }}</blockquote>
{% endif %}
{% if status.status_type == 'Boost' %}
{% include 'snippets/status_content.html' with status=status|boosted_status %}
{% endif %}
{% if not max_depth and status.reply_parent or status|replies %}<p><a href="{{ status.absolute_id }}">Thread</a>{% endif %}
</div>
2020-04-01 21:32:56 +00:00
</div>