Name and E-Mail is only shown when populated in profile.

This commit is contained in:
Marcus Scholz 2020-12-24 19:13:55 +01:00
parent b0396f5223
commit 07ea2f164c

View File

@ -26,14 +26,17 @@
</figure> </figure>
{% endif %} {% endif %}
<tr> <tr>
{% if explorer.user.first_name %}
<td class="LP-UserInfo__Key"> <td class="LP-UserInfo__Key">
<span class="LP-Paragraph">{% trans 'Name' %}</span> <span class="LP-Paragraph">{% trans 'Name' %}</span>
</td> </td>
<td class="LP-UserInfo__Value"> <td class="LP-UserInfo__Value">
<span class="LP-Paragraph">{{explorer.user.first_name}} {{explorer.user.last_name}}</span> <span class="LP-Paragraph">{{explorer.user.first_name}} {{explorer.user.last_name}}</span>
</td> </td>
{% endif %}
</tr> </tr>
<tr> <tr>
{% if explorer.user.email %}
<td class="LP-UserInfo__Key"> <td class="LP-UserInfo__Key">
<span class="LP-Paragraph">{% trans 'E-Mail' %}</span> <span class="LP-Paragraph">{% trans 'E-Mail' %}</span>
</td> </td>
@ -42,6 +45,7 @@
<a href="{{explorer.user.email}}" class="LP-Link">{{explorer.user.email}}</a> <a href="{{explorer.user.email}}" class="LP-Link">{{explorer.user.email}}</a>
</span> </span>
</td> </td>
{% endif %}
</tr> </tr>
<tr> <tr>
<td class="LP-UserInfo__Key"> <td class="LP-UserInfo__Key">