Mercurial > kallithea
annotate rhodecode/templates/switch_to_list.html @ 4151:8b8f4a93c364 rhodecode-2.2.5-gpl
old style: show compare "Compare Revisions" inline ... and do the same with all other buttons
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 02 Jul 2014 19:03:24 -0400 |
parents | ffd45b185016 |
children |
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> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4021
diff
changeset
|
3 <a href="${h.url('branches_home',repo_name=c.repo_name)}" class="childs"><i class="icon-code-fork"></i> ${'%s (%s)' % (_('Branches'),len(c.rhodecode_repo.branches.values()),)}</a> |
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> |
4020
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
14 %if c.rhodecode_repo.closed_branches.values(): |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
15 <li> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4021
diff
changeset
|
16 <a href="${h.url('branches_home',repo_name=c.repo_name)}" class="childs"><i class="icon-code-fork"></i> ${'%s (%s)' % (_('Closed Branches'),len(c.rhodecode_repo.closed_branches.values()))}</a> |
4020
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
17 <ul> |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
18 %for cnt,branch in enumerate(c.rhodecode_repo.closed_branches.items()): |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
19 <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> |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
20 %endfor |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
21 </ul> |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
22 </li> |
218ed589e44a
branch selectors: show closed branches too
Mads Kiilerich <madski@unity3d.com>
parents:
3654
diff
changeset
|
23 %endif |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
24 <li> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4021
diff
changeset
|
25 <a href="${h.url('tags_home',repo_name=c.repo_name)}" class="childs"><i class="icon-tag"></i> ${'%s (%s)' % (_('Tags'),len(c.rhodecode_repo.tags.values()),)}</a> |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
26 <ul> |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
27 %if c.rhodecode_repo.tags.values(): |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
28 %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
|
29 <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
|
30 %endfor |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
31 %else: |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 <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
|
33 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
34 </ul> |
1748
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
35 </li> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
36 %if c.rhodecode_repo.alias == 'hg': |
1748
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
37 <li> |
4116
ffd45b185016
Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
4021
diff
changeset
|
38 <a href="${h.url('bookmarks_home',repo_name=c.repo_name)}" class="childs"><i class="icon-bookmark"></i> ${'%s (%s)' % (_('Bookmarks'),len(c.rhodecode_repo.bookmarks.values()),)}</a> |
1748
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
39 <ul> |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
40 %if c.rhodecode_repo.bookmarks.values(): |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
41 %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
|
42 <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
|
43 %endfor |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
44 %else: |
a3ee2611e6e8
implements #135 bookmark support for UI
Marcin Kuzminski <marcin@python-works.com>
parents:
1608
diff
changeset
|
45 <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
|
46 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
47 </ul> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
48 </li> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
49 %endif |