fetch user image with getPersonalPortrait().

svn path=/plone.app.discussion/trunk/; revision=27206
This commit is contained in:
Timo Stollenwerk 2009-05-29 07:12:20 +00:00
parent 087c428e3e
commit 7083856268

View File

@ -26,6 +26,7 @@
depth reply_dict/depth|python:0;
creator reply/Creator;
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', '');"
tal:attributes="class python:'comment replyTreeLevel'+str(depth);
style string:margin-left: ${depth}em;
@ -34,8 +35,11 @@
<div class="commentImage" tal:condition="not:anonymous_creator">
<a href="" tal:condition="not:isAnon"
tal:attributes="href author_home_url">
<img src="" alt=""
tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username};
<img src="defaultUser.gif"
alt=""
border="0"
width="75"
tal:attributes="src portrait/absolute_url;
alt reply/creator" />
</a>
<img src="" alt=""