From ea6f906725123177a9a0db673cb1215eba0f1e01 Mon Sep 17 00:00:00 2001
From: kaiyou <pierre@jaury.eu>
Date: Sun, 2 Aug 2020 15:13:18 +0200
Subject: [PATCH] Only display contact info when necessary

---
 hiboo/user/templates/user_details.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hiboo/user/templates/user_details.html b/hiboo/user/templates/user_details.html
index dc159153..cabc8cd8 100644
--- a/hiboo/user/templates/user_details.html
+++ b/hiboo/user/templates/user_details.html
@@ -18,10 +18,12 @@
           <dt>{% trans %}Created at{% endtrans %}</dt>
           <dd>{{ user.created_at }}</dd>
 
+          {% if user.contact %}
           {% for name, value in user.contact.items() %}
           <dt>{{ name | capitalize }}</dt>
           <dd>{{ value }}</dd>
           {% endfor %}
+          {% endif %}
         </dl>
       </div>
       </div>
-- 
GitLab