fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Profile page don't showing "collection" or "wish list" links if user don't own or have wish listed any volumes.

This commit is contained in:
Felipe Martin 2014-05-27 22:19:20 +02:00
parent 622b69c05a
commit 8b320994d1
1 changed files with 4 additions and 0 deletions

View File

@ -25,10 +25,14 @@
<div class="list-group">
<a data-pjax-nav href="{% url 'profile' %}" data-pjax class="list-group-item active">
{% trans "Summary" %}</a>
{% if user.have_volumes.count > 0 %}
<a data-pjax-nav href="{% url 'profile' 'collection' %}" data-pjax="profile" class="list-group-item">
{% trans "Collection" %}</a>
{% endif %}
{% if user.wishlisted_volumes.count > 0 %}
<a data-pjax-nav href="{% url 'profile' 'wishlist' %}" data-pjax="profile" class="list-group-item">
{% trans "Wishlist" %}</a>
{% endif %}
{% comment %}
<a data-pjax-nav href="{% url 'profile' 'achievements' %}" data-pjax="profile" class="list-group-item">
{% trans "Achievements" %}</a>