Mercurial > kallithea
annotate rhodecode/templates/search/search_path.html @ 3197:b4f401524060 beta
html: don't use tabs
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 22 Jan 2013 23:44:38 +0100 |
parents | f91d3f9b7230 |
children |
rev | line source |
---|---|
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ##path search |
1599 | 2 |
3 %for cnt,sr in enumerate(c.formated_results): | |
4 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'): | |
3197 | 5 <div class="search_path"> |
6 <div class="link"> | |
7 ${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['f_path'])), | |
8 h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))} | |
9 </div> | |
10 </div> | |
1599 | 11 %else: |
12 %if cnt == 0: | |
3197 | 13 <div class="error"> |
14 <div class="link"> | |
15 ${_('Permission denied')} | |
16 </div> | |
17 </div> | |
1599 | 18 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
19 |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
20 %endif |
1599 | 21 %endfor |
22 %if c.cur_query and c.formated_results: | |
23 <div class="pagination-wh pagination-left"> | |
24 ${c.formated_results.pager('$link_previous ~2~ $link_next')} | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
25 </div> |
1599 | 26 %endif |