## -*- 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.url('search_repo_home',repo_name=c.repo_name),method='get')} %else:
${self.breadcrumbs()}
${h.form(h.url('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
${c.runtime}
${h.end_form()}