parent
87ccf94eb7
commit
20427deb81
2 changed files with 11 additions and 1 deletions
@ -0,0 +1,10 @@ |
||||
{% load static %} |
||||
{% load thumbnail %} |
||||
|
||||
{% if obj.logo %} |
||||
{% thumbnail obj.logo "40x40" format="PNG" as im %} |
||||
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" class="pic" alt=""> |
||||
{% endthumbnail %} |
||||
{% else %} |
||||
<img src="{% static 'client/img/no-logo.png' %}" class="pic" alt="" /> |
||||
{% endif %} |
||||
Loading…
Reference in new issue