comparison rhodecode/templates/search/search_content.html @ 556:65b2f150beb7

Added searching for file names within the repository in rhodecode
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 07 Oct 2010 17:32:24 +0200
parents
children 45e1fdc0082c f91d3f9b7230
comparison
equal deleted inserted replaced
555:03676d39dd0a 556:65b2f150beb7
1 ##content highligthing
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="table">
6 <div id="body${cnt}" class="codeblock">
7 <div class="code-header">
8 <div class="revision">${h.link_to(h.literal('%s &raquo; %s' % (sr['repository'],sr['f_path'])),
9 h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))}</div>
10 </div>
11 <div class="code-body">
12 <pre>${h.literal(sr['content_short_hl'])}</pre>
13 </div>
14 </div>
15 </div>
16 %else:
17 %if cnt == 0:
18 <div class="table">
19 <div id="body${cnt}" class="codeblock">
20 <div class="error">${_('Permission denied')}</div>
21 </div>
22 </div>
23 %endif
24
25 %endif
26 %endfor
27 %if c.cur_query and c.formated_results:
28 <div class="pagination-wh pagination-left">
29 ${c.formated_results.pager('$link_previous ~2~ $link_next')}
30 </div>
31 %endif