Mercurial > kallithea
diff rhodecode/lib/helpers.py @ 636:ffd07396d315 beta
Fixes for raw_id, needed for git
Renamed hg controller to home
css html changes
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 26 Oct 2010 03:20:32 +0200 |
parents | fd63782c4426 |
children | 9dc1d92d82ed |
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py Mon Oct 25 03:19:01 2010 +0200 +++ b/rhodecode/lib/helpers.py Tue Oct 26 03:20:32 2010 +0200 @@ -272,12 +272,12 @@ changeset.date, tooltip(changeset.message)) lnk_format = 'r%-5s:%s' % (changeset.revision, - changeset.short_id) + changeset.raw_id) uri = link_to( lnk_format, url('changeset_home', repo_name=changeset.repository.name, - revision=changeset.short_id), - style=get_color_string(changeset.short_id), + revision=changeset.raw_id), + style=get_color_string(changeset.raw_id), class_='tooltip', tooltip_title=tooltip_html ) @@ -352,6 +352,7 @@ email = util.email email_or_none = lambda x: util.email(x) if util.email(x) != x else None person = lambda x: _person(x) +short_id = lambda x: x[:12] #============================================================================== # PERMS