changeset 1456:69bedb8bda21

fix displaying 'current' comment for search results
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Tue, 22 Aug 2006 21:23:56 +0200
parents d20d04b46ed4
children 80fd46bb05eb
files MoinMoin/search/results.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/results.py	Tue Aug 22 21:05:11 2006 +0200
+++ b/MoinMoin/search/results.py	Tue Aug 22 21:23:56 2006 +0200
@@ -742,7 +742,8 @@
             f.paragraph(1, attr={'class': 'searchhitinfobar'}),
             f.text('%.1fk - ' % (page.page.size()/1024.0)),
             f.text('rev: %d %s- ' % (rev,
-                not page.page.rev and '(%s) ' % _('current') or '')),
+                page.page.rev == page.page.getRevList()[0] and 
+                '(%s) ' % _('current') or '')),
             f.text('last modified: %(time)s' % page.page.lastEditInfo()),
             # XXX: proper metadata
             #f.text('lang: %s - ' % page.page.language),