change image of member from ImageField to ThumbnailerImageField

This commit is contained in:
2020-08-27 22:43:04 +00:00
parent 37dff3b310
commit 764bee63f6
6 changed files with 11 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
func{% extends 'layout.html' %}
{% extends 'layout.html' %}
{% load post_helpers %}
{% load static %}
{% block content %}

View File

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

View File

@@ -16,7 +16,7 @@
<div class="article-details">
{{post.subtitle | tags_to_url }}
<div class="article-author">
<img src="{{author_image}}" alt="" style="width:80px;height:80px"/>
<img src="{{author_image}}" alt="" />
<a href="/members/member/{{post.author}}">{{post.author}}</a>
</div>