Don't show tags list if user doesn't have any.

master
Nick Sergeant 2013-02-04 22:01:29 -05:00
parent 31fc156dbf
commit f5bc4c66be
1 changed files with 10 additions and 8 deletions

View File

@ -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 &raquo;</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>