diff --git a/news/164.feature b/news/164.feature new file mode 100644 index 0000000..c582a84 --- /dev/null +++ b/news/164.feature @@ -0,0 +1,3 @@ +Extended existing review workflow by stati ``rejected`` and ``spam`` +Moderation view extended to handle four workflow states. +[ksuess and precious input of agitator] diff --git a/plone/app/discussion/browser/comment.py b/plone/app/discussion/browser/comment.py index 3b1ea47..ef75083 100644 --- a/plone/app/discussion/browser/comment.py +++ b/plone/app/discussion/browser/comment.py @@ -76,7 +76,7 @@ class EditCommentForm(CommentForm): self.request.response.redirect(target) @button.buttonAndHandler(_(u'edit_comment_form_button', - default=u'Edit comment'), name='comment') + default=u'Save'), name='comment') def handleComment(self, action): # Validate form diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index bf6671b..6635bcc 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -32,6 +32,7 @@
@@ -94,7 +96,8 @@ class="commentactionsform" tal:condition="python:not canDelete and isDeleteOwnCommentAllowed and view.could_delete_own(reply)" tal:attributes="action string:${reply/absolute_url}/@@delete-own-comment; - style python:view.can_delete_own(reply) and 'display: inline' or 'display: none'"> + style python:view.can_delete_own(reply) and 'display: inline' or 'display: none'; + id string:delete-${comment_id}"> + tal:attributes="action string:${reply/absolute_url}/@@moderate-delete-comment; + id string:delete-${comment_id}"> - Edit @@ -128,7 +132,8 @@ method="get" class="commentactionsform" tal:condition="not: auth_token" - tal:attributes="action string:${reply/absolute_url}/@@edit-comment"> + tal:attributes="action string:${reply/absolute_url}/@@edit-comment; + id string:edit-${comment_id}"> + tal:attributes="action string:${reply/absolute_url}/@@transmit-comment; + name action/id; + id string:${action/id}-${comment_id}"> - - - - - - - -

- Comments approved -

- -
- Warning - - Moderation workflow is disabled. You have to - - enable the 'Comment Review Workflow' for the Comment content - type before you can moderate comments here. - -
- -
-
-

- No comments approved -

-
-
- -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
CommenterDateIn Response ToCommentApproved byAction
- Name - -
- Email - -
-
- - - - - show full comment text - - - last history entry - - - - -
-
-
-
- -
-
- - - diff --git a/plone/app/discussion/browser/configure.zcml b/plone/app/discussion/browser/configure.zcml index 6caff55..9572de5 100644 --- a/plone/app/discussion/browser/configure.zcml +++ b/plone/app/discussion/browser/configure.zcml @@ -29,23 +29,6 @@ permission="plone.app.discussion.ReviewComments" /> - - - - - - + + + +