Files
@ 8beaaea70a89
Branch filter:
Location: kallithea/rhodecode/templates/switch_to_list.html - annotation
8beaaea70a89
1.8 KiB
text/html
compare: move get_changesets to compare controller where it is used - 2nd half that was lost in 6c79bfcd3b54
That is a better location than the pull request model. It should probably be
split up and moved to the backend specific Repository classes.
That is a better location than the pull request model. It should probably be
split up and moved to the backend specific Repository classes.
f91d3f9b7230 0069657aaf42 ec6354949623 0069657aaf42 0069657aaf42 0069657aaf42 46e10b3de4e3 0069657aaf42 0069657aaf42 0069657aaf42 0069657aaf42 f91d3f9b7230 0069657aaf42 0069657aaf42 ec6354949623 0069657aaf42 0069657aaf42 0069657aaf42 46e10b3de4e3 0069657aaf42 0069657aaf42 0069657aaf42 0069657aaf42 f91d3f9b7230 a3ee2611e6e8 f91d3f9b7230 a3ee2611e6e8 ec6354949623 a3ee2611e6e8 a3ee2611e6e8 a3ee2611e6e8 46e10b3de4e3 a3ee2611e6e8 a3ee2611e6e8 a3ee2611e6e8 a3ee2611e6e8 f91d3f9b7230 f91d3f9b7230 f91d3f9b7230 | ## -*- coding: utf-8 -*-
<li>
${h.link_to('%s (%s)' % (_('Branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
<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[0] if '/' not in branch[0] else branch[1]), at=branch[0]))}</pre></div></li>
%endfor
%else:
<li>${h.link_to(_('There are no branches yet'),'#')}</li>
%endif
</ul>
</li>
<li>
${h.link_to('%s (%s)' % (_('Tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
<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[0] if '/' not in tag[0] else tag[1]), at=tag[0]))}</pre></div></li>
%endfor
%else:
<li>${h.link_to(_('There are no tags yet'),'#')}</li>
%endif
</ul>
</li>
%if c.rhodecode_repo.alias == 'hg':
<li>
${h.link_to('%s (%s)' % (_('Bookmarks'),len(c.rhodecode_repo.bookmarks.values()),),h.url('bookmarks_home',repo_name=c.repo_name),class_='bookmarks childs')}
<ul>
%if c.rhodecode_repo.bookmarks.values():
%for cnt,book in enumerate(c.rhodecode_repo.bookmarks.items()):
<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>
%endfor
%else:
<li>${h.link_to(_('There are no bookmarks yet'),'#')}</li>
%endif
</ul>
</li>
%endif
|