Files @ bbbb013a0e94
Branch filter:

Location: kallithea/rhodecode/templates/switch_to_list.html - annotation

Bradley M. Kuhn
Import some of the files from Select2 3.5.0 Javascript system.

RhodeCode 2.2.5 used a version of Select2. Herein, we bring into
Kallithea only a few files directly from Select2 3.5.0 (6ef7155) upstream,
using the commands indicated below:

(cd /tmp; \
git clone https://github.com/ivaynberg/select2.git; \
cd select2; \
git checkout 3.5.0 \
)
mkdir rhodecode/public/js/select2
cp -pa /tmp/select2/select2.{js,css,png} rhodecode/public/js/select2/
cp -pa /tmp/select2/select2x2.png rhodecode/public/js/select2/
cp -pa /tmp/select2/select2-spinner.gif rhodecode/public/js/select2/
hg add rhodecode/public/js/select2/
## -*- coding: utf-8 -*-
<li>
    <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>
    <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>
%if c.rhodecode_repo.closed_branches.values():
<li>
    <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>
    <ul>
        %for cnt,branch in enumerate(c.rhodecode_repo.closed_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
    </ul>
</li>
%endif
<li>
    <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>
    <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>
    <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>
    <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