From e8a874605fc9afa95214ee14701c6e694a6e0b87 Mon Sep 17 00:00:00 2001 From: Luan Date: Fri, 8 Nov 2013 19:25:11 -0200 Subject: [PATCH] Adding verification to only display badges block if one exists --- src/accounts/templates/accounts/user_detail.html | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/accounts/templates/accounts/user_detail.html b/src/accounts/templates/accounts/user_detail.html index a81a19a..b0ee97c 100644 --- a/src/accounts/templates/accounts/user_detail.html +++ b/src/accounts/templates/accounts/user_detail.html @@ -99,20 +99,22 @@ -
-
-
-

{% trans "Badges" %}

-
-
-
- {% for badge in user_.badge_set.all %} - - {% endfor %} + {% if user_.badge_set.exists %} +
+
+
+

{% trans "Badges" %}

+
+
+
+ {% for badge in user_.badge_set.all %} + + {% endfor %} +
-
+
-
+ {% endif %}
-- libgit2 0.21.2