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