## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%def name="title()"> %if c.repo_name: ${_('Search inside repository %(repo_name)s') % {'repo_name': c.repo_name}} %else: ${_('Search inside all accessible repositories')} %endif %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="breadcrumbs_links()"> %if c.repo_name: ${_('Search inside repository %(repo_name)s') % {'repo_name': c.repo_name}} %else: ${_('Search inside all accessible repositories')} %endif %if c.cur_query: » ${c.cur_query} %endif <%def name="menu_bar_nav()"> %if c.repo_name: ${self.menu_items(active='repositories')} %else: ${self.menu_items(active='search')} %endif <%def name="menu_bar_subnav()"> %if c.repo_name: ${self.repo_menu(active='options')} %endif <%def name="main()">
%if c.repo_name:
${self.repo_page_title(c.rhodecode_db_repo)}
${h.form(h.route_path('search_repo',repo_name=c.repo_name),method='get')} %else:
${self.breadcrumbs()}
${h.form(h.route_path('search'), method='get')} %endif
${h.text('q', c.cur_query)} ${h.select('type',c.search_type,[('content',_('File contents')), ('commit',_('Commit messages')), ('path',_('File names')),],id='id_search_type')}
% for error in c.errors: % for k,v in error.asdict().items(): ${k} - ${v} % endfor % endfor

${_('Example Queries')}

${c.runtime}
${h.end_form()}