Files @ b70c6652a0d4
Branch filter:

Location: kallithea/rhodecode/templates/repo_switcher_list.html

Marcin Kuzminski
fixed issue #644 When a user is both in read and write group, the permission taken in account is the last saved permission
- added configurable parameters to permission class with two algorithms, higherwin and lowerwin.
- default is set now to higherwin, later we'll make that configurable
## -*- coding: utf-8 -*-

<li class="qfilter_rs">
    <input type="text" style="border:0;width:100%" value="${_('quick filter...')}" name="filter" id="q_filter_rs" />
</li>

%for repo in c.repos_list:

      %if repo['dbrepo']['private'] and c.visual.show_private_icon:
         <li>
             <img src="${h.url('/images/icons/lock.png')}" alt="${_('Private repository')}" class="repo_switcher_type"/>
             ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
          </li>
      %elif not repo['dbrepo']['private'] and c.visual.show_public_icon:
         <li>
             <img src="${h.url('/images/icons/lock_open.png')}" alt="${_('Public repository')}" class="repo_switcher_type" />
             ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
         </li>
      %endif
%endfor