Changeset 1128
- Timestamp:
- 06/27/08 09:38:39
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneComments/branches/plone-3.0/browser/__init__.py
r1018 r1128 1 # qPloneComments/branches/plone-3.0/browser/comments.pt
r1018 r1128 37 37 isPublished python:reply.review_state=='published';" 38 38 tal:attributes="style string:margin-left:${indent}em;"> 39 39 40 40 <h3> 41 41 <a name="comments" tal:attributes="name reply/id"> … … 53 53 <span i18n:translate="label_anonymous_user" 54 54 tal:condition="anonymous_creator">Anonymous User</span> 55 <span i18n:translate="label_commented_at">at</span> 55 <span i18n:translate="label_commented_at">at</span> 56 56 <span tal:replace="python:view.format_time(reply.ModificationDate())">8/23/2001 12:40:44 PM</span> 57 57 <span tal:condition="python:ifModerate and not isPublished">[pending]</span> qPloneComments/branches/plone-3.0/browser/comments.py
r1018 r1128 6 6 from plone.app.layout.viewlets import comments 7 7 8 8 9 class CommentsViewlet(comments.CommentsViewlet): 9 """A custom version of the comments viewlet 10 """A custom version of the comments viewlet 10 11 """ 11 12 12 13 render = ViewPageTemplateFile('comments.pt') 13 14 14 15 def is_moderation_enabled(self): 15 16 """ Returns a boolean indicating whether the user has enabled moderation … … 21 22 except AttributeError: 22 23 return False 23 24 24 25 def can_moderate(self): 25 26 """ Returns a boolean indicating whether the user has the 'Moderate Discussion'
