## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${_('Search')}: ${c.cur_query} <%def name="breadcrumbs()"> ${c.hg_app_name} <%def name="page_nav()"> ${self.menu('home')} <%def name="main()">
${_('Search')}
${h.form('search',method='get')}
${h.text('q',c.cur_query,class_="small")}
${c.runtime}
${h.end_form()} %for cnt,sr in enumerate(c.formated_results): %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'):
${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['f_path'])), h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))}
${h.literal(sr['content_short'])}
%else: %if cnt == 0:
${_('Permission denied')}
%endif %endif %endfor