</script>
</div>
- <div metal:define-macro="clipboard" tal:condition="python:not request.SESSION.get('editBoxes')" tal:omit-tag="" i18n:domain="plinn" tal:on-error="python:here.emptyClipboard(empty=True,ajax=True) and None">
+ <div metal:define-macro="clipboard"
+ tal:condition="python:not request.SESSION.get('editBoxes')"
+ i18n:domain="plinn"
+ tal:on-error="python:here.emptyClipboard(empty=True,ajax=True) and None"
+ id="clipboard">
<table tal:condition="clip" class="clipboard" cellspacing="0" tal:define="clip here/getCPInfoList">
<tr><th i18n:translate="">Clipboard</th></tr>
<tr><td>
<ul>
<li tal:repeat="item clip" tal:attributes="class python:repeat['item'].odd() and 'odd' or 'even'"><input type="checkbox" name="indexes:int:list" tal:attributes="value repeat/item/index"/><a tal:attributes="href item/url ; title item/title"><img tal:attributes="src item/icon ; alt item/type ; height item/height ; width item/width" border="0" /> <span tal:replace="item/title">Title</span></a></li>
</ul>
- <!--
- <input type="submit" name="delete" value="Delete" i18n:attributes="value" style="float:left"/>
- <input type="submit" name="empty" value="Empty" i18n:attributes="value" style="float:right" />
- -->
+ <input type="submit" name="delete" value="Delete" i18n:attributes="value" style="float:left"/>
+ <input type="submit" name="empty" value="Empty" i18n:attributes="value" style="float:right" />
</form>
</td></tr>
</table>
class="news_box" cellspacing="0"
tal:define="ctool python:modules['Products.CMFCore.utils'].getToolByName(here, 'portal_catalog');
news python:ctool(portal_type='News Item'
- , sort_on='Date'
+ , sort_on='modified'
, sort_order='reverse'
, review_state='published')[:5]"
tal:condition="news"
<a tal:attributes="href n/getURL ; title n/Description">
<img border="0" alt="News Item" tal:attributes="src n/getIcon" i18n:attributes="alt" />
<span tal:replace="n/Title|n/getId"></span>
- <div tal:content="python:DateTime(n.Date).strftime(locale_date_fmt)"></div>
+ <div tal:content="python:DateTime(n.ModificationDate).strftime(locale_date_fmt)"></div>
</a>
</td>
</tr>