Skip to content

Commit

Permalink
Handle missing email in profile image instruction
Browse files Browse the repository at this point in the history
Signed-off-by: Keshav Priyadarshi <[email protected]>
  • Loading branch information
keshav-space committed Jan 7, 2025
1 parent 3286e00 commit c8c48fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fedcode/templates/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@
<i class="fas fa-external-link-alt fa-xs"></i>
</span>
</a>
to create your profile picture using your email address — {{ person.user.email }}
to create your profile picture using your email address —
{% if person.user.email %}
<span class="has-text-info">{{ person.user.email }}</span>
{% else %}
<span class="has-text-danger">No email found!</span>
{% endif %}
</p>
<div class="has-text-centered mt-3">
<button class="button is-info" onclick="closeModal()">Close</button>
Expand Down

0 comments on commit c8c48fd

Please sign in to comment.