Mercurial > kallithea
changeset 2538:827d4252d81f beta
Use actual names in branch-tag switcher
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 03 Jul 2012 00:20:12 +0200 |
parents | 952dd2c95e45 |
children | da18c423b100 |
files | rhodecode/templates/switch_to_list.html |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/switch_to_list.html Tue Jul 03 00:19:02 2012 +0200 +++ b/rhodecode/templates/switch_to_list.html Tue Jul 03 00:20:12 2012 +0200 @@ -4,7 +4,7 @@ <ul> %if c.rhodecode_repo.branches.values(): %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()): - <li><div><pre>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</pre></div></li> + <li><div><pre>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[0]))}</pre></div></li> %endfor %else: <li>${h.link_to(_('There are no branches yet'),'#')}</li> @@ -16,7 +16,7 @@ <ul> %if c.rhodecode_repo.tags.values(): %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()): - <li><div><pre>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</pre></div></li> + <li><div><pre>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[0]))}</pre></div></li> %endfor %else: <li>${h.link_to(_('There are no tags yet'),'#')}</li>