From 8d9bdff1e296cf623abf3e8ff6b42f59300250ba Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 16 Apr 2012 18:38:56 -0400 Subject: [PATCH] Only show tags if they exist. --- snipts/templates/snipts/snipt-list.html | 30 +++++++++++++------------ snipts/templates/snipts/tags-user.html | 22 +++++++++--------- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/snipts/templates/snipts/snipt-list.html b/snipts/templates/snipts/snipt-list.html index ff23a49..fdc00ad 100644 --- a/snipts/templates/snipts/snipt-list.html +++ b/snipts/templates/snipts/snipt-list.html @@ -47,20 +47,22 @@ {% endif %} -
-

{{ snipt.tags.all|length }} tag{{ snipt.tags.all|pluralize }}

- -
+ {% if snipt.tags.all %} +
+

{{ snipt.tags.all|length }} tag{{ snipt.tags.all|pluralize }}

+ +
+ {% endif %}