Show email in moderation view
This commit is contained in:
parent
1e19fb25da
commit
8e344cbf2b
@ -14,6 +14,8 @@ New features:
|
||||
|
||||
Bug fixes:
|
||||
|
||||
- Show email in moderation view [ksuess]
|
||||
|
||||
- Remove plone.app.robotframework extras (reload and ride).
|
||||
They are not needed and they are not Python 3 compatible.
|
||||
[gforcada]
|
||||
|
@ -103,7 +103,10 @@
|
||||
<input type="hidden" name="selected_obj_paths:list" value="#"
|
||||
tal:attributes="value item/getURL" />
|
||||
</td>
|
||||
<td tal:content="python:item.author_name or item.Creator" />
|
||||
<td>
|
||||
<span tal:content="python:item.author_name or item.Creator">Name</span>
|
||||
<div tal:condition="item/author_email"><a tal:attributes="href string:mailto:${item/author_email}" tal:content="item/author_email">Email</a></div>
|
||||
</td>
|
||||
<td tal:content="python:toLocalizedTime(item.ModificationDate, long_format=1)" />
|
||||
<td>
|
||||
<a tal:attributes="href item/getURL"
|
||||
|
@ -14,5 +14,6 @@
|
||||
<column value="commentators" />
|
||||
<column value="in_response_to" />
|
||||
<column value="author_name" />
|
||||
<column value="author_email" />
|
||||
|
||||
</object>
|
||||
|
@ -61,3 +61,7 @@ def upgrade_comment_workflows(context):
|
||||
comment.reindexObjectSecurity()
|
||||
except (AttributeError, KeyError):
|
||||
logger.info('Could not reindex comment %s' % brain.getURL())
|
||||
|
||||
|
||||
def update_catalog(context):
|
||||
context.runImportStepFromProfile(default_profile, 'catalog')
|
@ -50,5 +50,15 @@
|
||||
handler=".upgrades.upgrade_comment_workflows"
|
||||
/>
|
||||
</genericsetup:upgradeSteps>
|
||||
|
||||
<genericsetup:upgradeStep
|
||||
title="show email in moderation view"
|
||||
description="reload catalog config to add author_email in metadata.'"
|
||||
source="1000"
|
||||
destination="1001"
|
||||
handler=".upgrades.update_catalog"
|
||||
sortkey="1"
|
||||
profile="plone.app.discussion:default"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
|
Loading…
Reference in New Issue
Block a user