Only show tags if they exist.

master
Nick Sergeant 2012-04-16 18:38:56 -04:00
parent b1b7779309
commit 8d9bdff1e2
2 changed files with 28 additions and 24 deletions

View File

@ -47,6 +47,7 @@
</li>
{% endif %}
</ul>
{% if snipt.tags.all %}
<section class="tags">
<h2>{{ snipt.tags.all|length }} tag{{ snipt.tags.all|pluralize }}</h2>
<ul>
@ -61,6 +62,7 @@
{% endfor %}
</ul>
</section>
{% endif %}
</aside>
</div>
<footer>

View File

@ -1,3 +1,4 @@
{% if tags %}
<section class="tags">
<h1>{{ user.username }}'s tags</h1>
<ul>
@ -8,3 +9,4 @@
{% endfor %}
</ul>
</section>
{% endif %}