X-Git-Url: https://svn.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/3e0a2c257d49fb162da9c70d2f70194036235166..4e31549f317ab0f4816129265d6dde20626fc416:/skins/generic/widgets.pt diff --git a/skins/generic/widgets.pt b/skins/generic/widgets.pt index 00d7af8..be44d58 100644 --- a/skins/generic/widgets.pt +++ b/skins/generic/widgets.pt @@ -48,7 +48,11 @@ </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> @@ -56,10 +60,8 @@ <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> @@ -114,7 +116,7 @@ tal:content="structure python:''' 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" @@ -127,7 +129,7 @@ tal:content="structure python:''' <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>