##// END OF EJS Templates
It's better to use Exception here than assertion. It plays better with the exception handling software like sentry or errormator
It's better to use Exception here than assertion. It plays better with the exception handling software like sentry or errormator

File last commit:

r3654:ec635494 beta
r3783:f533c054 beta
Show More
switch_to_list.html
39 lines | 1.8 KiB | text/html | HtmlLexer
White-space cleanup
r1888 ## -*- coding: utf-8 -*-
lazy load of branches and tags menu...
r1608 <li>
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 ${h.link_to('%s (%s)' % (_('Branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
lazy load of branches and tags menu...
r1608 <ul>
%if c.rhodecode_repo.branches.values():
%for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
added same switch to logic for tags and bookmarks containing /....
r3425 <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] if '/' not in branch[0] else branch[1]), at=branch[0]))}</pre></div></li>
lazy load of branches and tags menu...
r1608 %endfor
%else:
<li>${h.link_to(_('There are no branches yet'),'#')}</li>
%endif
White-space cleanup
r1888 </ul>
lazy load of branches and tags menu...
r1608 </li>
<li>
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 ${h.link_to('%s (%s)' % (_('Tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
lazy load of branches and tags menu...
r1608 <ul>
%if c.rhodecode_repo.tags.values():
%for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
added same switch to logic for tags and bookmarks containing /....
r3425 <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] if '/' not in tag[0] else tag[1]), at=tag[0]))}</pre></div></li>
lazy load of branches and tags menu...
r1608 %endfor
%else:
<li>${h.link_to(_('There are no tags yet'),'#')}</li>
%endif
White-space cleanup
r1888 </ul>
implements #135 bookmark support for UI
r1748 </li>
White-space cleanup
r1888 %if c.rhodecode_repo.alias == 'hg':
implements #135 bookmark support for UI
r1748 <li>
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 ${h.link_to('%s (%s)' % (_('Bookmarks'),len(c.rhodecode_repo.bookmarks.values()),),h.url('bookmarks_home',repo_name=c.repo_name),class_='bookmarks childs')}
implements #135 bookmark support for UI
r1748 <ul>
%if c.rhodecode_repo.bookmarks.values():
%for cnt,book in enumerate(c.rhodecode_repo.bookmarks.items()):
added same switch to logic for tags and bookmarks containing /....
r3425 <li><div><pre>${h.link_to('%s - %s' % (book[0],h.short_id(book[1])),h.url('files_home',repo_name=c.repo_name,revision=(book[0] if '/' not in book[0] else book[1]), at=book[0]))}</pre></div></li>
implements #135 bookmark support for UI
r1748 %endfor
%else:
<li>${h.link_to(_('There are no bookmarks yet'),'#')}</li>
%endif
White-space cleanup
r1888 </ul>
</li>
%endif