Mercurial > kallithea
annotate rhodecode/templates/search/search_path.html @ 2944:0add173667b6 beta
Journal was missing a dt.repo_name change
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 20 Oct 2012 13:49:16 +0200 |
parents | f91d3f9b7230 |
children | b4f401524060 |
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'): | |
5 <div class="search_path"> | |
6 <div class="link"> | |
7 ${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['f_path'])), | |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
8 h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))} |
1599 | 9 </div> |
10 </div> | |
11 %else: | |
12 %if cnt == 0: | |
13 <div class="error"> | |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
14 <div class="link"> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
15 ${_('Permission denied')} |
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
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 |