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;">
|
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
|
|
|
|
2010-03-19 10:44:07 +01:00
|
|
|
<dl class="portalMessage warning"
|
|
|
|
tal:condition="not: view/moderation_enabled">
|
|
|
|
<dt> Warning </dt>
|
|
|
|
<dd i18n:translate="message_moderation_disabled">
|
|
|
|
Moderation workflow is disabled. You have to <a href=""
|
|
|
|
tal:attributes="href string:${context/portal_url}/@@types-controlpanel">
|
|
|
|
enable the 'Comment Review Workflow' for the Comment content
|
|
|
|
type</a> before you can moderate comments here.
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
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
|
|
|
|
2009-07-01 01:49:32 +02:00
|
|
|
<table id="review-comments" class="listing" style="width: 100%">
|
|
|
|
<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_subject">Subject</th>
|
|
|
|
<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">
|
|
|
|
<tr style="vertical-align: top" 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="#"
|
|
|
|
tal:attributes="value item/getPath;
|
|
|
|
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>
|
|
|
|
<td tal:content="item/Creator" />
|
|
|
|
<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>
|
|
|
|
<td>
|
|
|
|
<a tal:attributes="href item/getURL"
|
|
|
|
tal:content="item/Title" />
|
|
|
|
</td>
|
|
|
|
|
2010-01-25 12:43:29 +01:00
|
|
|
<td>
|
|
|
|
<span tal:replace="structure python:view.cook(item.Description)" />
|
|
|
|
<a href=""
|
|
|
|
tal:attributes="href string:${item/getURL}/getText"
|
|
|
|
tal:condition="python:item.Description.endswith('[...]')"
|
2010-01-26 11:18:46 +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>
|
|
|
|
</html>
|