2009-06-10 22:14:44 +02:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
|
|
|
|
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
|
|
|
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
|
|
|
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
|
|
lang="en"
|
|
|
|
metal:use-macro="context/main_template/macros/master"
|
2009-06-17 01:25:36 +02:00
|
|
|
i18n:domain="plone.app.discussion">
|
2009-06-10 22:14:44 +02:00
|
|
|
<body>
|
|
|
|
|
|
|
|
<metal:main fill-slot="main">
|
2009-06-28 20:38:25 +02:00
|
|
|
<tal:main-macro metal:define-macro="main"
|
2009-12-07 16:45:39 +01:00
|
|
|
tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime;
|
|
|
|
items view/comments;
|
2009-07-01 01:17:40 +02:00
|
|
|
filter view/filter|nothing;
|
|
|
|
Batch python:modules['Products.CMFPlone'].Batch;
|
|
|
|
b_size python:30;
|
|
|
|
b_start python:0;
|
2009-10-18 15:12:52 +02:00
|
|
|
b_start request/b_start | b_start;
|
|
|
|
moderation_enabled view/moderation_enabled;">
|
2010-05-03 13:53:20 +02:00
|
|
|
<script type="text/javascript"
|
|
|
|
tal:attributes="src string:${context/portal_url}/++resource++plone.app.discussion.javascripts/moderation.js">
|
|
|
|
</script>
|
2009-06-10 22:14:44 +02:00
|
|
|
|
2010-01-28 11:57:36 +01:00
|
|
|
<h1 class="documentFirstHeading" i18n:translate="heading_moderate_comments">
|
2009-06-29 17:09:41 +02:00
|
|
|
Moderate comments
|
2009-06-28 20:38:25 +02:00
|
|
|
</h1>
|
2010-01-27 15:54:07 +01:00
|
|
|
|
2014-02-11 09:42:42 +01:00
|
|
|
<div class="portalMessage warning"
|
2010-03-19 10:44:07 +01:00
|
|
|
tal:condition="not: view/moderation_enabled">
|
2014-02-11 09:42:42 +01:00
|
|
|
<strong i18n:domain="plone" i18n:translate="">Warning</strong>
|
|
|
|
<span tal:omit-tag="" i18n:translate="message_moderation_disabled">
|
2010-08-06 11:51:23 +02:00
|
|
|
Moderation workflow is disabled. You have to
|
|
|
|
<a i18n:name="enable_comment_workflow"
|
|
|
|
i18n:translate="message_enable_comment_workflow" href=""
|
2015-07-16 12:17:59 +02:00
|
|
|
tal:attributes="href string:${context/portal_url}/@@content-controlpanel?type_id=Discussion Item">
|
2010-12-16 00:52:56 +01:00
|
|
|
enable the 'Comment Review Workflow' for the Comment content
|
2010-03-19 10:44:07 +01:00
|
|
|
type</a> before you can moderate comments here.
|
2014-02-11 09:42:42 +01:00
|
|
|
</span>
|
|
|
|
</div>
|
2010-12-16 00:52:56 +01:00
|
|
|
|
2009-07-07 10:08:59 +02:00
|
|
|
<form tal:condition="not:items">
|
|
|
|
<fieldset id="fieldset-moderate-comments" class="formPanel">
|
|
|
|
<p id="no-comments-message" i18n:translate="message_nothing_to_moderate">
|
|
|
|
No comments to moderate.
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
2009-06-26 20:59:37 +02:00
|
|
|
<form method="post"
|
|
|
|
action="#"
|
2009-07-01 01:17:40 +02:00
|
|
|
tal:attributes="action string:${context/absolute_url}/@@bulk-actions"
|
|
|
|
tal:condition="items"
|
|
|
|
tal:define="batch python:Batch(items, b_size, int(b_start), orphan=1);">
|
2009-06-29 23:05:38 +02:00
|
|
|
|
2009-07-01 01:49:32 +02:00
|
|
|
<fieldset id="fieldset-moderate-comments" class="formPanel">
|
2009-07-01 01:17:40 +02:00
|
|
|
|
2009-07-01 01:49:32 +02:00
|
|
|
<div metal:use-macro="here/batch_macros/macros/navigation" />
|
2009-07-01 01:17:40 +02:00
|
|
|
|
2012-10-22 09:53:09 +02:00
|
|
|
<table id="review-comments" class="listing">
|
2009-07-01 01:49:32 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="bulkactions" class="nosort" colspan="7">
|
|
|
|
<select name="form.select.BulkAction">
|
|
|
|
<option selected="selected" value="-1" i18n:translate="title_bulkactions">Bulk Actions</option>
|
|
|
|
<option value="publish"
|
|
|
|
i18n:translate="bulkactions_publish"
|
2010-03-19 10:58:35 +01:00
|
|
|
tal:condition="python: filter != 'published' and moderation_enabled">Approve</option>
|
2009-07-01 01:49:32 +02:00
|
|
|
<option value="delete" i18n:translate="bulkactions_delete">Delete</option>
|
|
|
|
</select>
|
|
|
|
<input type="hidden" name="form.button.Filter" tal:attributes="value filter" value="" />
|
|
|
|
<input id="dobulkaction"
|
2009-07-01 00:17:42 +02:00
|
|
|
type="submit"
|
2009-07-01 01:49:32 +02:00
|
|
|
class="standalone allowMultiSubmit"
|
|
|
|
value="Apply"
|
|
|
|
name="form.button.BulkAction"
|
|
|
|
i18n:attributes="value label_apply;" />
|
|
|
|
</th>
|
2009-06-29 17:09:41 +02:00
|
|
|
</tr>
|
2009-07-01 01:49:32 +02:00
|
|
|
<tr>
|
|
|
|
<th class="nosort"><input name="check_all" type="checkbox" value="0" /></th>
|
2010-01-28 11:57:36 +01:00
|
|
|
<th class="nosort" i18n:translate="heading_commenter">Commenter</th>
|
2009-07-03 08:45:29 +02:00
|
|
|
<th class="nosort" i18n:translate="heading_date">Date</th>
|
2010-01-28 11:57:36 +01:00
|
|
|
<th class="nosort" i18n:translate="heading_in_reponse_to">In Response To</th>
|
2009-07-03 08:45:29 +02:00
|
|
|
<th class="nosort" i18n:translate="heading_comment">Comment</th>
|
2009-07-01 01:49:32 +02:00
|
|
|
<th class="nosort" i18n:translate="heading_action">Action</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tal:block repeat="item batch">
|
2012-10-22 09:53:09 +02:00
|
|
|
<tr class="commentrow"
|
2009-12-08 12:53:10 +01:00
|
|
|
tal:define="even repeat/item/even"
|
|
|
|
tal:attributes="class python: even and 'odd' or 'even'">
|
2009-07-01 01:49:32 +02:00
|
|
|
<td class="notDraggable">
|
|
|
|
<input type="checkbox"
|
|
|
|
class="noborder"
|
|
|
|
name="paths:list" id="#"
|
|
|
|
value="#"
|
2010-09-24 19:04:24 +02:00
|
|
|
tal:attributes="value item/getPath;
|
2009-07-01 01:49:32 +02:00
|
|
|
id string:cb_${item/id};
|
|
|
|
checked item/checked|nothing;
|
|
|
|
alt string:Select ${item/Title};
|
|
|
|
title string:Select ${item/Title}" />
|
|
|
|
<input type="hidden" name="selected_obj_paths:list" value="#"
|
|
|
|
tal:attributes="value item/getURL" />
|
|
|
|
</td>
|
2010-03-24 16:38:18 +01:00
|
|
|
<td tal:content="python:item.author_name or item.Creator" />
|
2009-07-01 01:49:32 +02:00
|
|
|
<td tal:content="python:toLocalizedTime(item.ModificationDate, long_format=1)" />
|
|
|
|
<td>
|
|
|
|
<a tal:attributes="href item/getURL"
|
2009-07-03 10:03:09 +02:00
|
|
|
tal:content="item/in_response_to" />
|
2009-07-01 01:49:32 +02:00
|
|
|
</td>
|
2010-01-25 12:43:29 +01:00
|
|
|
<td>
|
2011-04-02 21:51:37 +02:00
|
|
|
<span tal:replace="structure item/Description" />
|
2010-01-25 12:43:29 +01:00
|
|
|
<a href=""
|
|
|
|
tal:attributes="href string:${item/getURL}/getText"
|
|
|
|
tal:condition="python:item.Description.endswith('[...]')"
|
2010-12-16 00:52:56 +01:00
|
|
|
i18n:translate="label_show_full_comment_text"
|
2010-01-25 12:43:29 +01:00
|
|
|
class="show-full-comment-text">show full comment text</a>
|
|
|
|
</td>
|
2009-12-08 16:29:37 +01:00
|
|
|
<td class="actions">
|
2009-07-01 01:49:32 +02:00
|
|
|
<input id=""
|
|
|
|
class="context comment-publish-button"
|
|
|
|
type="submit"
|
2010-03-19 10:58:35 +01:00
|
|
|
value="Approve"
|
2009-07-01 01:49:32 +02:00
|
|
|
name="form.button.Publish"
|
2010-01-28 11:57:36 +01:00
|
|
|
i18n:attributes="value label_publish;"
|
2009-07-01 01:49:32 +02:00
|
|
|
tal:attributes="id item/id"
|
|
|
|
tal:condition="python:item.review_state == 'pending'"
|
|
|
|
/>
|
|
|
|
<input id=""
|
|
|
|
class="destructive comment-delete-button"
|
|
|
|
type="submit"
|
|
|
|
value="Delete"
|
|
|
|
name="form.button.Delete"
|
|
|
|
i18n:attributes="value label_delete;"
|
|
|
|
tal:attributes="id item/id"
|
|
|
|
/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tal:block>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<div metal:use-macro="here/batch_macros/macros/navigation" />
|
|
|
|
</fieldset>
|
2009-06-26 20:59:37 +02:00
|
|
|
</form>
|
2009-06-10 22:14:44 +02:00
|
|
|
</tal:main-macro>
|
|
|
|
</metal:main>
|
|
|
|
|
|
|
|
</body>
|
2010-08-06 11:51:23 +02:00
|
|
|
</html>
|