Mercurial > kallithea
diff pylons_app/templates/base/base.html @ 509:b50e79b4257a
fixes to pidlock, to not raise unneded execptions
few fixes in templating for empty repository to not show some labels, fixed tag/branch switcher
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 28 Sep 2010 19:53:52 +0000 |
parents | fdebc5f67dc6 |
children | 63212fea2471 |
line wrap: on
line diff
--- a/pylons_app/templates/base/base.html Tue Sep 28 02:31:10 2010 +0200 +++ b/pylons_app/templates/base/base.html Tue Sep 28 19:53:52 2010 +0000 @@ -143,17 +143,25 @@ <li> ${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} <ul> + %if c.repository_branches.values(): %for cnt,branch in enumerate(c.repository_branches.items()): <li>${h.link_to('%s - %s' % (branch[0],branch[1]),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li> %endfor + %else: + <li>${h.link_to(_('There are no branches yet'),'#')}</li> + %endif </ul> </li> <li> ${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} <ul> + %if c.repository_tags.values(): %for cnt,tag in enumerate(c.repository_tags.items()): <li>${h.link_to('%s - %s' % (tag[0],tag[1]),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li> %endfor + %else: + <li>${h.link_to(_('There are no tags yet'),'#')}</li> + %endif </ul> </li> </ul>