projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
492bf0f
)
Bugfix sur la boîte des actualités : affichage de la date de modification (au lieu...
author
Benoît Pin
<pin@cri.ensmp.fr>
Mon, 4 Jul 2011 09:41:40 +0000
(11:41 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Mon, 4 Jul 2011 09:41:40 +0000
(11:41 +0200)
skins/generic/widgets.pt
patch
|
blob
|
history
diff --git
a/skins/generic/widgets.pt
b/skins/generic/widgets.pt
index
00d7af8
..
d87ea31
100644
(file)
--- a/
skins/generic/widgets.pt
+++ b/
skins/generic/widgets.pt
@@
-114,7
+114,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'
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"
, sort_order='reverse'
, review_state='published')[:5]"
tal:condition="news"
@@
-127,7
+127,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>
<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.
Modification
Date).strftime(locale_date_fmt)"></div>
</a>
</td>
</tr>
</a>
</td>
</tr>