Show a warning in the moderation view if the moderation workflow is disabled.

svn path=/plone.app.discussion/trunk/; revision=35341
This commit is contained in:
Timo Stollenwerk 2010-03-19 09:44:07 +00:00
parent 24a34d6919
commit 437094d951
2 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,9 @@ Changelog
1.0b4 (unreleased)
------------------
* Show a warning in the moderation view if the moderation workflow is disabled.
[timo]
* Move 'Moderate comments' link from site actions to user actions.
[timo]

View File

@ -22,6 +22,17 @@
Moderate comments
</h1>
<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>
<form tal:condition="not:items">
<fieldset id="fieldset-moderate-comments" class="formPanel">
<p id="no-comments-message" i18n:translate="message_nothing_to_moderate">