##// END OF EJS Templates
quick repo list: public/private icon control should only control icons, not repo visibility
Mads Kiilerich -
r3284:c36fee21 beta
parent child Browse files
Show More
@@ -1,20 +1,16 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2
2
3 <li class="qfilter_rs">
3 <li class="qfilter_rs">
4 <input type="text" style="border:0;width:100%" value="${_('quick filter...')}" name="filter" id="q_filter_rs" />
4 <input type="text" style="border:0;width:100%" value="${_('quick filter...')}" name="filter" id="q_filter_rs" />
5 </li>
5 </li>
6
6
7 %for repo in c.repos_list:
7 %for repo in c.repos_list:
8
8 <li>
9 %if repo['dbrepo']['private'] and c.visual.show_private_icon:
9 %if repo['dbrepo']['private'] and c.visual.show_private_icon:
10 <li>
11 <img src="${h.url('/images/icons/lock.png')}" alt="${_('Private repository')}" class="repo_switcher_type"/>
10 <img src="${h.url('/images/icons/lock.png')}" alt="${_('Private repository')}" class="repo_switcher_type"/>
11 %elif not repo['dbrepo']['private'] and c.visual.show_public_icon:
12 <img src="${h.url('/images/icons/lock_open.png')}" alt="${_('Public repository')}" class="repo_switcher_type" />
13 %endif
12 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
14 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
13 </li>
15 </li>
14 %elif not repo['dbrepo']['private'] and c.visual.show_public_icon:
15 <li>
16 <img src="${h.url('/images/icons/lock_open.png')}" alt="${_('Public repository')}" class="repo_switcher_type" />
17 ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name %s" % repo['dbrepo']['repo_type'])}
18 </li>
19 %endif
20 %endfor
16 %endfor
General Comments 0
You need to be logged in to leave comments. Login now