mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 12:01:14 +00:00
Hide user status tabs when there are none
This commit is contained in:
parent
b4c155f134
commit
0d7ffbc175
1 changed files with 2 additions and 0 deletions
|
@ -249,6 +249,7 @@
|
||||||
|
|
||||||
<div class="block" id="reviews">
|
<div class="block" id="reviews">
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
|
{% if user_statuses.review_count or user_statuses.comment_count or user_stuatses.quotation_count %}
|
||||||
<nav class="tabs">
|
<nav class="tabs">
|
||||||
<ul>
|
<ul>
|
||||||
{% url 'book' book.id as tab_url %}
|
{% url 'book' book.id as tab_url %}
|
||||||
|
@ -276,6 +277,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for review in statuses %}
|
{% for review in statuses %}
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue