|
|
|
@ -42,7 +42,7 @@ |
|
|
|
{% thumbnail user.photo "120x120" crop="center" as im %} |
|
|
|
{% thumbnail user.photo "120x120" crop="center" as im %} |
|
|
|
<img id="photo" class="ava__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" /> |
|
|
|
<img id="photo" class="ava__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" /> |
|
|
|
{% empty %} |
|
|
|
{% empty %} |
|
|
|
<img id="photo" class="ava__pic" src="{% static 'img/no_cover.png' %}" width="120px" height="120px" /> |
|
|
|
<img id="photo" class="ava__pic" src="{% static 'img/user_default.jpg' %}" width="120px" height="120px" /> |
|
|
|
{% endthumbnail %} |
|
|
|
{% endthumbnail %} |
|
|
|
<input name="photo" class="ava__input" type="file" accept='image/*' onchange='openFile(event)'> |
|
|
|
<input name="photo" class="ava__input" type="file" accept='image/*' onchange='openFile(event)'> |
|
|
|
<div class="ava__icon"> |
|
|
|
<div class="ava__icon"> |
|
|
|
|