diff pylons_app/lib/helpers.py @ 284:ed7abf925696

#4: changes proposed by feedback to annotation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 13 Jun 2010 16:27:19 +0200
parents 0e5455fda8fd
children cd2ee462fc2c
line wrap: on
line diff
--- a/pylons_app/lib/helpers.py	Sun Jun 13 15:56:47 2010 +0200
+++ b/pylons_app/lib/helpers.py	Sun Jun 13 16:27:19 2010 +0200
@@ -84,10 +84,9 @@
         return "color: rgb(%s) ! important;" % (','.join(col))
         
     def url_func(changeset):
-        return '%s\n' % (link_to(changeset.raw_id,
+        return '%s\n' % (link_to('r%s:%s' % (changeset.revision, changeset.raw_id),
         url('changeset_home', repo_name='test', revision=changeset.raw_id),
-        title=_('author') + ':%s rev:%s %s' % (changeset.author, changeset.revision,
-                                                changeset.message,),
+        title=_('author') + ':%s - %s' % (changeset.author, changeset.message,),
         style=get_color_string(changeset.raw_id)))
            
     return literal(annotate_highlight(filenode, url_func, **kwargs))