diff --git a/myproject/myapp/templates/user_page.html b/myproject/myapp/templates/user_page.html index e1bba6eb33c2a123fe1305753908c11f6ea1e5c9..dffc797078bc996353cbfb8d449b0a24c8708bda 100644 --- a/myproject/myapp/templates/user_page.html +++ b/myproject/myapp/templates/user_page.html @@ -147,8 +147,12 @@ class="shadow-sm bg-gray-50 border border-gray-300 text-grey-300 sm:text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="example@gmail.com" required - >{{ user.email }}</span - > + {% if user.email %} + <span>{{ user.email }}</span> + {% else %} + <span>No email address on record.</span> + {% endif %} + </div> <div class="col-span-6 sm:col-span-3"> <label