Fixed bug on users page preventing non-auth users from seeing left menu
This commit is contained in:
parent
5cfb9adee1
commit
82e25bdc94
|
@ -25,11 +25,11 @@
|
|||
<div class="list-group">
|
||||
<a data-pjax-nav href="{% url 'profile' item.username %}" data-pjax class="list-group-item {% if section == 'summary' %}active{% endif %}">
|
||||
{% trans "Summary" %}</a>
|
||||
{% if user.have_volumes.count > 0 %}
|
||||
{% if item.have_volumes.count > 0 %}
|
||||
<a data-pjax-nav href="{% url 'profile' item.username 'collection' %}" data-pjax="profile" class="list-group-item {% if section == 'collection' %}active{% endif %}">
|
||||
{% trans "Collection" %}</a>
|
||||
{% endif %}
|
||||
{% if user.wishlisted_volumes.count > 0 %}
|
||||
{% if item.wishlisted_volumes.count > 0 %}
|
||||
<a data-pjax-nav href="{% url 'profile' item.username 'wishlist' %}" data-pjax="profile" class="list-group-item {% if section == 'wishlist' %}active{% endif %}">
|
||||
{% trans "Wishlist" %}</a>
|
||||
{% endif %}
|
||||
|
|
Reference in New Issue