From 07ea2f164c648cdae27fd6ab5a48f31be5622cd6 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 24 Dec 2020 19:13:55 +0100 Subject: [PATCH] Name and E-Mail is only shown when populated in profile. --- .../lostplaces/templates/explorer/profile.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/templates/explorer/profile.html b/django_lostplaces/lostplaces/templates/explorer/profile.html index d829cbf..18c39cb 100644 --- a/django_lostplaces/lostplaces/templates/explorer/profile.html +++ b/django_lostplaces/lostplaces/templates/explorer/profile.html @@ -26,15 +26,18 @@ {% endif %} + {% if explorer.user.first_name %} {% trans 'Name' %} {{explorer.user.first_name}} {{explorer.user.last_name}} + {% endif %} - + {% if explorer.user.email %} + {% trans 'E-Mail' %} @@ -42,6 +45,7 @@ {{explorer.user.email}} + {% endif %}