Don't show tags list if user doesn't have any.
parent
31fc156dbf
commit
f5bc4c66be
|
@ -2,6 +2,7 @@
|
|||
{% if request.user == user %}
|
||||
<a href="/{{ user }}/favorites/" class="favorited-snipts {% if 'favorites' in request.path %}active{% endif %}"><span>View favorited snipts »</span></a>
|
||||
{% endif %}
|
||||
{% if tags %}
|
||||
<h1>{{ user.username }}'s tags</h1>
|
||||
<ul>
|
||||
{% for t in tags %}
|
||||
|
@ -10,4 +11,5 @@
|
|||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
|
Loading…
Reference in New Issue