Commit 56ad2e8a authored by Ramon Angelo Enriquez's avatar Ramon Angelo Enriquez

Fixed a bug that when the user did not upload a picture, the page would outright not load

parent 0632ec69
......@@ -14,7 +14,9 @@
<p style="position: absolute; left: 300px; top: 545px;">Home Unit: {{ user.department.home_unit }}</p>
<p style="position: absolute; left: 850px; top: 325px;">Email: {{ user.email }}</p>
<div class="picShadow"></div>
<img src="{{ user.picture.url }}" width="200" height="200">
{% if user.picture %}
<img src="{{ user.picture.url }}" width="200" height="200">
{% endif %}
{% else %}
<p>User not found.</p>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment