##// END OF EJS Templates
Use actual names in branch-tag switcher
marcink -
r2538:827d4252 beta
parent child Browse files
Show More
@@ -1,39 +1,39
1 1 ## -*- coding: utf-8 -*-
2 2 <li>
3 3 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
4 4 <ul>
5 5 %if c.rhodecode_repo.branches.values():
6 6 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
7 <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>
7 <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>
8 8 %endfor
9 9 %else:
10 10 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
11 11 %endif
12 12 </ul>
13 13 </li>
14 14 <li>
15 15 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
16 16 <ul>
17 17 %if c.rhodecode_repo.tags.values():
18 18 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
19 <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>
19 <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>
20 20 %endfor
21 21 %else:
22 22 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
23 23 %endif
24 24 </ul>
25 25 </li>
26 26 %if c.rhodecode_repo.alias == 'hg':
27 27 <li>
28 28 ${h.link_to('%s (%s)' % (_('bookmarks'),len(c.rhodecode_repo.bookmarks.values()),),h.url('bookmarks_home',repo_name=c.repo_name),class_='bookmarks childs')}
29 29 <ul>
30 30 %if c.rhodecode_repo.bookmarks.values():
31 31 %for cnt,book in enumerate(c.rhodecode_repo.bookmarks.items()):
32 32 <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[1]))}</pre></div></li>
33 33 %endfor
34 34 %else:
35 35 <li>${h.link_to(_('There are no bookmarks yet'),'#')}</li>
36 36 %endif
37 37 </ul>
38 38 </li>
39 39 %endif
General Comments 0
You need to be logged in to leave comments. Login now