Don't show ratings below user statuses

This commit is contained in:
Mouse Reeve
2021-05-18 11:09:19 -07:00
parent ab69abb8f0
commit 07d59c8c09
2 changed files with 8 additions and 3 deletions

View File

@ -195,7 +195,7 @@
{% endif %}
<div class="block" id="reviews">
{% if request.user.is_authenticated %}
{% if user_statuses.review_count or user_statuses.comment_count or user_stuatses.quotation_count %}
{% if user_statuses.review_count or user_statuses.comment_count or user_statuses.quotation_count %}
<nav class="tabs">
<ul>
{% url 'book' book.id as tab_url %}
@ -238,6 +238,7 @@
</div>
{% endfor %}
{% if ratings %}
<div class="block is-flex is-flex-wrap-wrap">
{% for rating in ratings %}
{% with user=rating.user %}
@ -265,6 +266,7 @@
{% endwith %}
{% endfor %}
</div>
{% endif %}
<div class="block">
{% include 'snippets/pagination.html' with page=statuses path=request.path anchor="#reviews" %}
</div>