always show comment in the batch moderation view in reverse chronological order, disallow sorting on the table.

svn path=/plone.app.discussion/trunk/; revision=27788
This commit is contained in:
Timo Stollenwerk 2009-07-03 06:45:29 +00:00
parent dc78965931
commit d70d872f95
2 changed files with 8 additions and 5 deletions

View File

@ -86,11 +86,11 @@
</tr> </tr>
<tr> <tr>
<th class="nosort"><input name="check_all" type="checkbox" value="0" /></th> <th class="nosort"><input name="check_all" type="checkbox" value="0" /></th>
<th i18n:translate="heading_author">Commenter</th> <th class="nosort" i18n:translate="heading_author">Commenter</th>
<th i18n:translate="heading_date">Date</th> <th class="nosort" i18n:translate="heading_date">Date</th>
<th i18n:translate="heading_context">In Response To</th> <th class="nosort" i18n:translate="heading_context">In Response To</th>
<th i18n:translate="heading_subject">Subject</th> <th class="nosort" i18n:translate="heading_subject">Subject</th>
<th i18n:translate="heading_comment">Comment</th> <th class="nosort" i18n:translate="heading_comment">Comment</th>
<th class="nosort" i18n:translate="heading_action">Action</th> <th class="nosort" i18n:translate="heading_action">Action</th>
</tr> </tr>
</thead> </thead>

View File

@ -46,6 +46,7 @@ class View(BrowserView):
return catalog( return catalog(
portal_type='Discussion Item', portal_type='Discussion Item',
sort_on='created', sort_on='created',
sort_order='reverse',
sort_limit=self.limit, sort_limit=self.limit,
) )
@ -61,6 +62,7 @@ class View(BrowserView):
portal_type='Discussion Item', portal_type='Discussion Item',
review_state=self.state, review_state=self.state,
sort_on='created', sort_on='created',
sort_order='reverse',
sort_limit=self.limit, sort_limit=self.limit,
) )
@ -77,6 +79,7 @@ class View(BrowserView):
portal_type='Discussion Item', portal_type='Discussion Item',
review_state='published', review_state='published',
sort_on='created', sort_on='created',
sort_order='reverse',
sort_limit=self.limit, sort_limit=self.limit,
) )