Don't try to show profile picture on profiles if there is none for account
This commit is contained in:
parent
b3cee6d1a1
commit
bd6d69a83b
1 changed files with 3 additions and 1 deletions
|
@ -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="col-xs-12 col-sm-12 col-md-12 col-lg-4 col-xl-4 mb-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<img src="/files/{{ user.profile.profile_pic }}" class="rounded mt-0 mr-1 img-fluid d-inline" style="max-height: 1.7rem;"/>
|
{% 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>
|
<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 %}
|
{% 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>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue