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
|
|
|
|
2009-06-28 20:38:25 +02:00
|
|
|
<h1 class="documentFirstHeading" i18n:translate="title_review">
|
2009-06-29 17:09:41 +02:00
|
|
|
Moderate comments
|
2009-06-28 20:38:25 +02:00
|
|
|
</h1>
|
2009-06-29 23:05:38 +02:00
|
|
|
|
2009-07-01 01:49:32 +02:00
|
|
|
<ul class="filter formTabs">
|
|
|
|
<li class="all formTab firstFormTab">
|
2009-06-28 20:38:25 +02:00
|
|
|
<form method="post"
|
|
|
|
action="#"
|
|
|
|
tal:attributes="action string:${context/absolute_url}/@@moderate-comments">
|
2009-07-01 01:49:32 +02:00
|
|
|
<input type="submit" value="All" class=""
|
|
|
|
tal:attributes="class python: not filter and 'selected' or ''" />
|
2009-06-28 20:38:25 +02:00
|
|
|
</form>
|
|
|
|
</li>
|
2009-07-01 01:49:32 +02:00
|
|
|
<li class="pending formTab">
|
2009-06-28 20:38:25 +02:00
|
|
|
<form method="post" action="#" tal:attributes="action string:${context/absolute_url}/@@moderate-comments">
|
2009-06-29 13:11:58 +02:00
|
|
|
<input type="hidden" name="form.button.Filter" value="pending" />
|
2009-07-01 01:49:32 +02:00
|
|
|
<input type="submit" value="Pending" class=""
|
|
|
|
tal:attributes="class python:filter == 'pending' and 'selected' or ''"/>
|
2009-06-28 20:38:25 +02:00
|
|
|
</form>
|
|
|
|
</li>
|
2009-07-01 01:49:32 +02:00
|
|
|
<li class="approved formTab lastFormTab">
|
2009-06-28 20:38:25 +02:00
|
|
|
<form method="post" action="#" tal:attributes="action string:${context/absolute_url}/@@moderate-comments">
|
2009-06-29 13:11:58 +02:00
|
|
|
<input type="hidden" name="form.button.Filter" value="published" />
|
2009-07-01 01:49:32 +02:00
|
|
|
<input type="submit" value="Published" class=""
|
|
|
|
tal:attributes="class python:filter == 'published' and 'selected' or ''"/>
|
2009-06-28 20:38:25 +02:00
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<!--
|
|
|
|
<li class="spam">
|
|
|
|
<a href="#"
|
|
|
|
tal:attributes="href string:${context/absolute_url}/@@comments-spam"
|
|
|
|
i18n:translate="title_filter_spam">Spam</a>
|
|
|
|
</li>
|
|
|
|
-->
|
|
|
|
</ul>
|
2009-07-01 01:49:32 +02: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
|
|
|
|
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="retract" i18n:translate="bulkactions_retract">Retract</option>-->
|
|
|
|
<option value="publish"
|
|
|
|
i18n:translate="bulkactions_publish"
|
2009-10-18 15:12:52 +02:00
|
|
|
tal:condition="python: filter != 'published' and moderation_enabled">Publish</option>
|
2009-07-01 01:49:32 +02:00
|
|
|
<!--<option value="mark_as_spam" i18n:translate="bulkactions_markasspam">Mark as Spam</option>-->
|
|
|
|
<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>
|
2009-07-03 08:45:29 +02:00
|
|
|
<th class="nosort" i18n:translate="heading_author">Commenter</th>
|
|
|
|
<th class="nosort" i18n:translate="heading_date">Date</th>
|
|
|
|
<th class="nosort" i18n:translate="heading_context">In Response To</th>
|
|
|
|
<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"
|
|
|
|
tal:define="odd repeat/item/odd"
|
|
|
|
tal:attributes="class python: odd and 'odd' or 'even'">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<td tal:content="structure python:view.cook(item.Description)" />
|
|
|
|
<td style="width: 11em;">
|
|
|
|
<input id=""
|
|
|
|
class="context comment-publish-button"
|
|
|
|
type="submit"
|
|
|
|
value="Publish"
|
|
|
|
name="form.button.Publish"
|
|
|
|
i18n:attributes="value label_publish"
|
|
|
|
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>
|