file upload

remotes/origin/1203
pavel 11 years ago
parent 903a7d5dca
commit ac5ecccd26
  1. 10
      templates/client/includes/accounts/current_user.html
  2. 10
      templates/client/includes/company/company_edit.html

@ -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>

@ -19,9 +19,13 @@
<div class="i-pict p-editable editable-wrap hidden">
<div id="pick-block" class="pic_block">
{% thumbnail company.logo "100x100" crop="center" as im %}
<img class="user-avatar" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"/>
{% endthumbnail %}
{% if company.logo %}
{% thumbnail company.logo "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">

Loading…
Cancel
Save