# HG changeset patch # User Thierry Florac # Date 1516108917 -3600 # Node ID c92db6057772d73d174aa6d6fb7ce35ac5198067 # Parent 4c819010d0fdbf0567accd777b042c2d18e64bcb Updated review interface diff -r 4c819010d0fd -r c92db6057772 src/pyams_content/features/review/zmi/__init__.py --- a/src/pyams_content/features/review/zmi/__init__.py Mon Dec 11 15:24:44 2017 +0100 +++ b/src/pyams_content/features/review/zmi/__init__.py Tue Jan 16 14:21:57 2018 +0100 @@ -207,16 +207,6 @@ return get_age(comment.creation_date) -@viewlet_config(name='add-review-comment.action', context=IReviewTarget, layer=IAdminLayer, - view=SharedContentReviewCommentsView, manager=IWidgetTitleViewletManager, - permission=COMMENT_CONTENT_PERMISSION) -class SharedContentReviewAddCommentAction(JsToolbarAction): - """Shared content review add comment action""" - - label = _("Add comment...") - url = 'PyAMS_content.review.addCommentAction' - - @view_config(name='get-last-review-comments.json', context=IReviewTarget, request_type=IPyAMSLayer, permission=COMMENT_CONTENT_PERMISSION, renderer='json', xhr=True) @template_config(template='templates/review-comments-json.pt') diff -r 4c819010d0fd -r c92db6057772 src/pyams_content/features/review/zmi/templates/review-comments.pt --- a/src/pyams_content/features/review/zmi/templates/review-comments.pt Mon Dec 11 15:24:44 2017 +0100 +++ b/src/pyams_content/features/review/zmi/templates/review-comments.pt Tue Jan 16 14:21:57 2018 +0100 @@ -58,6 +58,11 @@ data-ams-form-data-init-callback="PyAMS_content.review.initCommentData" tal:attributes="data-ams-form-handler extension:absolute_url(context, 'add-review-comment.json')">
+
+ + Add comment +
@@ -65,7 +70,7 @@
+ i18n:translate="">Add this comment