don't show the link to the author's page on the comments viewlet to anonymous users.

svn path=/plone.app.discussion/trunk/; revision=27192
This commit is contained in:
Timo Stollenwerk 2009-05-28 07:04:35 +00:00
parent 4d0541bfd8
commit 77e8093c53

View File

@ -20,11 +20,16 @@
id string:comment-${reply/id}"> id string:comment-${reply/id}">
<div class="commentImage" tal:condition="not:anonymous_creator"> <div class="commentImage" tal:condition="not:anonymous_creator">
<a href="" tal:attributes="href author_home_url"> <a href="" tal:condition="not:isAnon"
tal:attributes="href author_home_url">
<img src="" alt="" <img src="" alt=""
tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username}; tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username};
alt reply/creator" /> alt reply/creator" />
</a> </a>
<img src="" alt=""
tal:condition="isAnon"
tal:attributes="src string:${context/portal_url}/portal_memberdata/portraits/${reply/author_username};
alt reply/creator" />
</div> </div>
<h3> <h3>
@ -37,10 +42,13 @@
<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 condition="not:anonymous_creator">
<a href="" <a href=""
tal:condition="not:isAnon"
tal:content="creator" tal:content="creator"
tal:attributes="href author_home_url"> tal:attributes="href author_home_url">
Poster Name Poster Name
</a> </a>
<span tal:condition="isAnon"
tal:replace="creator" />
</tal:name> </tal:name>
<tal:name i18n:translate="label_anonymous_user" <tal:name i18n:translate="label_anonymous_user"
condition="anonymous_creator">Anonymous User</tal:name> condition="anonymous_creator">Anonymous User</tal:name>