added thumbnails for members

This commit is contained in:
2020-08-16 08:00:43 +00:00
parent 7fa09b1351
commit 9b150028d2
4 changed files with 14 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
{# only thumb and name of member #}
{% load thumbnail %}
<a class="thumbnail member-thumb" style="width:150px;height:150px">
{% if member.image %}<img src="{{member.image.url}}" />{% endif %}
{% if member.image %}<img src="{{member.image | thumbnail_url:'thumb'}}" />{% endif %}
<div class="thumb-layer"><div><h1>{{member.nickname}}</h1> <p>{{member.firstname}} {{member.surname}}</p></div></div>
</a>