fetch user image with getPersonalPortrait().
svn path=/plone.app.discussion/trunk/; revision=27206
This commit is contained in:
parent
087c428e3e
commit
7083856268
@ -26,6 +26,7 @@
|
|||||||
depth reply_dict/depth|python:0;
|
depth reply_dict/depth|python:0;
|
||||||
creator reply/Creator;
|
creator reply/Creator;
|
||||||
author_home_url string:${context/portal_url}/author/${reply/author_username};
|
author_home_url string:${context/portal_url}/author/${reply/author_username};
|
||||||
|
portrait python: here.portal_membership.getPersonalPortrait(reply.author_username);
|
||||||
anonymous_creator python:creator in ('Anonymous User', '');"
|
anonymous_creator python:creator in ('Anonymous User', '');"
|
||||||
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
|
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
|
||||||
style string:margin-left: ${depth}em;
|
style string:margin-left: ${depth}em;
|
||||||
@ -34,8 +35,11 @@
|
|||||||
<div class="commentImage" tal:condition="not:anonymous_creator">
|
<div class="commentImage" tal:condition="not:anonymous_creator">
|
||||||
<a href="" tal:condition="not:isAnon"
|
<a href="" tal:condition="not:isAnon"
|
||||||
tal:attributes="href author_home_url">
|
tal:attributes="href author_home_url">
|
||||||
<img src="" alt=""
|
<img src="defaultUser.gif"
|
||||||
tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username};
|
alt=""
|
||||||
|
border="0"
|
||||||
|
width="75"
|
||||||
|
tal:attributes="src portrait/absolute_url;
|
||||||
alt reply/creator" />
|
alt reply/creator" />
|
||||||
</a>
|
</a>
|
||||||
<img src="" alt=""
|
<img src="" alt=""
|
||||||
|
Loading…
Reference in New Issue
Block a user