Mercurial > kallithea
annotate rhodecode/templates/switch_to_list.html @ 3852:eae62e28343e beta
handle case of rewrite without an gistid in nginx example
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 12 May 2013 17:19:21 +0200 |
parents | ec6354949623 |
children | 218ed589e44a |
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> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3425
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')} |
1608
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()): |
3425
46e10b3de4e3
added same switch to logic for tags and bookmarks containing /.
Marcin Kuzminski <marcin@python-works.com>
parents:
3424
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[0] if '/' not in branch[0] else branch[1]), at=branch[0]))}</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> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3425
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')} |
1608
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()): |
3425
46e10b3de4e3
added same switch to logic for tags and bookmarks containing /.
Marcin Kuzminski <marcin@python-works.com>
parents:
3424
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[0] if '/' not in tag[0] else tag[1]), at=tag[0]))}</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> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3425
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')} |
1748
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()): |
3425
46e10b3de4e3
added same switch to logic for tags and bookmarks containing /.
Marcin Kuzminski <marcin@python-works.com>
parents:
3424
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[0] if '/' not in book[0] else book[1]), at=book[0]))}</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 |