diff mercurial/templatefilters.py @ 9721:1d75c683ada1

templater: put 'ago' inside the age template filter
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 05 Nov 2009 14:44:29 +0100
parents 20ed9909dbd9
children 4d9dea174b84
line wrap: on
line diff
--- a/mercurial/templatefilters.py	Thu Nov 05 14:26:37 2009 +0100
+++ b/mercurial/templatefilters.py	Thu Nov 05 14:44:29 2009 +0100
@@ -43,7 +43,7 @@
     for t, s in agescales:
         n = delta // s
         if n >= 2 or s == 1:
-            return fmt(t, n)
+            return '%s ago' % fmt(t, n)
 
 para_re = None
 space_re = None