Don't try to show profile picture on profiles if there is none for account

This commit is contained in:
Socks 2018-03-26 17:28:52 +01:00
parent b3cee6d1a1
commit bd6d69a83b

View file

@ -21,7 +21,9 @@
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 col-xl-4 mb-3">
<div class="card">
<div class="card-header">
{% if user.profile.profile_pic %}
<img src="/files/{{ user.profile.profile_pic }}" class="rounded mt-0 mr-1 img-fluid d-inline" style="max-height: 1.7rem;"/>
{% endif %}
<h4 style="display: inline">{{ user.displayname }}' Profile</h4>
{% if following %}<form action="/unfollow/{{ user.displayname }}" method="POST" style="display: inline; float: right;"><input type="submit" value="Unfollow" class="btn btn-outline-danger btn-sm"/></form> {% else %}<form action="/follow/{{ user.displayname }}" method="POST" style="display:inline; float: right;"><input type="submit" value="Follow" class="btn btn-outline-primary btn-sm"/></form>{% endif %}
</div>