Shwo book preview with rating status
This commit is contained in:
parent
6ff1906a0b
commit
88c3a9fbe8
|
@ -1,15 +1,5 @@
|
||||||
{% load fr_display %}
|
{% load fr_display %}
|
||||||
|
|
||||||
{% if status.status_type == 'Review' and not status.name or not status.content %}
|
|
||||||
<div class="post rating">
|
|
||||||
<h2>
|
|
||||||
{% include 'snippets/status_header.html' with status=status %}
|
|
||||||
{% include 'snippets/stars.html' with book=book rating=status.rating %}
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
<div class="post {{ status.status_type | lower }} depth-{{ depth }} {% if main %}main{% else %}reply{% endif %}">
|
<div class="post {{ status.status_type | lower }} depth-{{ depth }} {% if main %}main{% else %}reply{% endif %}">
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -32,4 +22,3 @@
|
||||||
{% include 'snippets/interaction.html' with activity=status %}
|
{% include 'snippets/interaction.html' with activity=status %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -33,15 +33,19 @@
|
||||||
<div>
|
<div>
|
||||||
{% if status.status_type == 'Review' %}
|
{% if status.status_type == 'Review' %}
|
||||||
<h3>
|
<h3>
|
||||||
{{ status.name }}<br>
|
{% if status.name %}{{ status.name }}<br>{% endif %}
|
||||||
{% include 'snippets/stars.html' with rating=status.rating %}
|
{% include 'snippets/stars.html' with rating=status.rating %}
|
||||||
</h3>
|
</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if status.status_type != 'Update' and status.status_type != 'Boost' %}
|
{% if status.content and status.status_type != 'Update' and status.status_type != 'Boost' %}
|
||||||
<blockquote>{{ status.content | safe }}</blockquote>
|
<blockquote>{{ status.content | safe }}</blockquote>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% 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 %}
|
||||||
|
|
||||||
{% if status.status_type == 'Boost' %}
|
{% if status.status_type == 'Boost' %}
|
||||||
{% include 'snippets/status_content.html' with status=status|boosted_status %}
|
{% include 'snippets/status_content.html' with status=status|boosted_status %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue