Allways use an accessor method on the comment, never access the
attribute directly as the attribute is not acquisition wrapped and a permission check for the required permission will fail svn path=/plone.app.discussion/trunk/; revision=29205
This commit is contained in:
parent
984a1fed7d
commit
c145378f34
@ -36,7 +36,7 @@
|
|||||||
published python:wtool.getInfoFor(reply, 'review_state') == 'published';"
|
published python:wtool.getInfoFor(reply, 'review_state') == 'published';"
|
||||||
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:${reply/id}"
|
id string:${reply/getId}"
|
||||||
tal:condition="python:canManage or published">
|
tal:condition="python:canManage or published">
|
||||||
|
|
||||||
<div class="commentImage" tal:condition="showCommenterImage">
|
<div class="commentImage" tal:condition="showCommenterImage">
|
||||||
@ -48,7 +48,7 @@
|
|||||||
border="0"
|
border="0"
|
||||||
width="75"
|
width="75"
|
||||||
tal:attributes="src portrait_url;
|
tal:attributes="src portrait_url;
|
||||||
alt reply/creator" />
|
alt reply/Creator" />
|
||||||
</a>
|
</a>
|
||||||
<img src="defaultUser.gif"
|
<img src="defaultUser.gif"
|
||||||
alt=""
|
alt=""
|
||||||
@ -56,12 +56,12 @@
|
|||||||
width="75"
|
width="75"
|
||||||
tal:condition="isAnon"
|
tal:condition="isAnon"
|
||||||
tal:attributes="src portrait_url;
|
tal:attributes="src portrait_url;
|
||||||
alt reply/creator" />
|
alt reply/Creator" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
<a name="comments" tal:attributes="name reply/title">
|
<a name="comments" tal:attributes="name reply/title">
|
||||||
<span tal:replace="reply/title">Comment title</span>
|
<span tal:replace="reply/Title">Comment title</span>
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@ -70,12 +70,12 @@
|
|||||||
<tal:name>
|
<tal:name>
|
||||||
<a href=""
|
<a href=""
|
||||||
tal:condition="not:isAnon"
|
tal:condition="not:isAnon"
|
||||||
tal:content="creator"
|
tal:content="reply/Creator"
|
||||||
tal:attributes="href author_home_url">
|
tal:attributes="href author_home_url">
|
||||||
Poster Name
|
Poster Name
|
||||||
</a>
|
</a>
|
||||||
<span tal:condition="isAnon"
|
<span tal:condition="isAnon"
|
||||||
tal:replace="creator" />
|
tal:replace="reply/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>
|
||||||
@ -84,7 +84,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="commentBody"
|
<div class="commentBody"
|
||||||
tal:content="structure reply/text">
|
tal:content="structure reply/getText">
|
||||||
This is the body text of the comment.
|
This is the body text of the comment.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user