fix comments view. call getPersonalPortrait in the template again.
svn path=/plone.app.discussion/trunk/; revision=27351
This commit is contained in:
parent
1af2b435fd
commit
22a4916afa
@ -26,16 +26,16 @@
|
|||||||
tal:define="reply reply_dict/comment;
|
tal:define="reply reply_dict/comment;
|
||||||
depth reply_dict/depth|python:0;
|
depth reply_dict/depth|python:0;
|
||||||
creator reply/Creator;
|
creator reply/Creator;
|
||||||
commenter_home_url python:view.get_commenter_home_url(reply.author_username);
|
author_home_url string:${context/portal_url}/author/${reply/author_username};
|
||||||
portrait python:view.get_commenter_portrait(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;
|
||||||
id string:comment-${reply/id}">
|
id string:comment-${reply/id}">
|
||||||
|
|
||||||
<div class="commentImage" tal:condition="not:anonymous_creator">
|
<div class="commentImage">
|
||||||
<a href="" tal:condition="python: commenter_home_url and not isAnon"
|
<a href="" tal:condition="not:isAnon"
|
||||||
tal:attributes="href commenter_home_url">
|
tal:attributes="href author_home_url">
|
||||||
<img src="defaultUser.gif"
|
<img src="defaultUser.gif"
|
||||||
alt=""
|
alt=""
|
||||||
border="0"
|
border="0"
|
||||||
@ -47,7 +47,7 @@
|
|||||||
alt=""
|
alt=""
|
||||||
border="0"
|
border="0"
|
||||||
width="75"
|
width="75"
|
||||||
tal:condition="python: isAnon or not commenter_home_url"
|
tal:condition="isAnon"
|
||||||
tal:attributes="src portrait/absolute_url;
|
tal:attributes="src portrait/absolute_url;
|
||||||
alt reply/creator" />
|
alt reply/creator" />
|
||||||
</div>
|
</div>
|
||||||
@ -60,11 +60,11 @@
|
|||||||
|
|
||||||
<div class="documentByLine">
|
<div class="documentByLine">
|
||||||
<tal:posted i18n:translate="label_comment_by">Posted by</tal:posted>
|
<tal:posted i18n:translate="label_comment_by">Posted by</tal:posted>
|
||||||
<tal:name condition="not:anonymous_creator">
|
<tal:name>
|
||||||
<a href=""
|
<a href=""
|
||||||
tal:condition="not:isAnon"
|
tal:condition="not:isAnon"
|
||||||
tal:content="creator"
|
tal:content="creator"
|
||||||
tal:attributes="href commenter_home_url">
|
tal:attributes="href author_home_url">
|
||||||
Poster Name
|
Poster Name
|
||||||
</a>
|
</a>
|
||||||
<span tal:condition="isAnon"
|
<span tal:condition="isAnon"
|
||||||
|
Loading…
Reference in New Issue
Block a user