## -*- 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 <%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, placeholder="Enter query...")} ${h.select('type',c.search_type,[('content',_('Files')), ('path',_('File path')),('commit',_('Commits'))],id='id_search_type')} ${h.hidden('max_lines', '10')}
% for error in c.errors: % for k,v in error.asdict().items(): ${k} - ${v} % endfor % endfor

${_('Query Langague examples')}

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