fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Fixed bug on users page preventing non-auth users from seeing left menu

This commit is contained in:
Felipe Martín 2014-11-11 14:40:11 +01:00
parent 5cfb9adee1
commit 82e25bdc94
1 changed files with 2 additions and 2 deletions

View File

@ -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 %}