|
|
|
|
@ -20,9 +20,13 @@ |
|
|
|
|
|
|
|
|
|
<div class="i-pict p-editable editable-wrap hidden"> |
|
|
|
|
<div id="pick-block" class="pic_block"> |
|
|
|
|
{% thumbnail request.user.profile.avatar "100x100" crop="center" as im %} |
|
|
|
|
<img class="user-avatar" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"/> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% if request.user.profile.avatar %} |
|
|
|
|
{% thumbnail request.user.profile.avatar "100x100" crop="center" as im %} |
|
|
|
|
<img class="user-avatar" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"/> |
|
|
|
|
{% endthumbnail %} |
|
|
|
|
{% else %} |
|
|
|
|
<img class="user-avatar" src="{% static 'client/img/no-logo.png' %}" width="100" height="100"/> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
<div class="edit-wrap"> |
|
|
|
|
<a class="e-btn " href="#">{% trans 'редактировать' %}</a> |
|
|
|
|
|