Mercurial > kallithea
annotate rhodecode/templates/switch_to_list.html @ 2095:17c9393e9645 beta
docs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 02 Mar 2012 22:14:03 +0200 |
parents | f91d3f9b7230 |
children | 827d4252d81f |
rev | line source |
---|---|
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 <li> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
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')} |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 <ul> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 %if c.rhodecode_repo.branches.values(): |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()): |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1754
diff
changeset
|
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> |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 %endfor |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 %else: |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 <li>${h.link_to(_('There are no branches yet'),'#')}</li> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
12 </ul> |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
13 </li> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 <li> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
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')} |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 <ul> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 %if c.rhodecode_repo.tags.values(): |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()): |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1754
diff
changeset
|
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> |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
20 %endfor |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
21 %else: |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 <li>${h.link_to(_('There are no tags yet'),'#')}</li> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
24 </ul> |
1748
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
25 </li> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
26 %if c.rhodecode_repo.alias == 'hg': |
1748
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
27 <li> |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
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')} |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
29 <ul> |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
30 %if c.rhodecode_repo.bookmarks.values(): |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
31 %for cnt,book in enumerate(c.rhodecode_repo.bookmarks.items()): |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1754
diff
changeset
|
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> |
1748
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
33 %endfor |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
34 %else: |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
35 <li>${h.link_to(_('There are no bookmarks yet'),'#')}</li> |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
36 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
37 </ul> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
38 </li> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
39 %endif |