Skip to content

Commit c8c48fd

Browse files
committed
Handle missing email in profile image instruction
Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 3286e00 commit c8c48fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

fedcode/templates/user_profile.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@
174174
<i class="fas fa-external-link-alt fa-xs"></i>
175175
</span>
176176
</a>
177-
to create your profile picture using your email address — {{ person.user.email }}
177+
to create your profile picture using your email address —
178+
{% if person.user.email %}
179+
<span class="has-text-info">{{ person.user.email }}</span>
180+
{% else %}
181+
<span class="has-text-danger">No email found!</span>
182+
{% endif %}
178183
</p>
179184
<div class="has-text-centered mt-3">
180185
<button class="button is-info" onclick="closeModal()">Close</button>

0 commit comments

Comments
 (0)