## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%def name="title()"> %if c.repo_name: ${_('Search inside repository {repo_name}').format(repo_name=c.repo_name)} %elif c.repo_group_name: ${_('Search inside repository group {repo_group_name}').format(repo_group_name=c.repo_group_name)} %else: ${_('Search inside all accessible repositories')} %endif %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif %def> <%def name="breadcrumbs_links()"> %if c.repo_name: ${_('Search inside repository {repo_name}').format(repo_name=c.repo_name)} %elif c.repo_group_name: ${_('Search inside repository group {repo_group_name}').format(repo_group_name=c.repo_group_name)} %else: ${_('Search inside all accessible repositories')} %endif %def> <%def name="menu_bar_nav()"> %if c.repo_name: ${self.menu_items(active='search')} %elif c.repo_group_name: ${self.menu_items(active='search')} %else: ${self.menu_items(active='search')} %endif %def> <%def name="menu_bar_subnav()"> %if c.repo_name: <% active_entry = {'content':'files', 'path':'files', 'commit':'commits'}.get(c.search_type, 'summary')%> ${self.repo_menu(active=active_entry)} %elif c.repo_group_name: ${self.repo_group_menu(active='home')} %endif %def> <%def name="repo_icon(db_repo)"> %if h.is_hg(db_repo): %endif %if h.is_git(db_repo): %endif %if h.is_svn(db_repo): %endif %def> <%def name="repo_group_icon()"> %def> <%def name="field_sort(field_name)"> <% if c.sort.startswith('asc:'): return c.url_generator(sort='desc:{}'.format(field_name)) elif c.sort.startswith('desc:'): return c.url_generator(sort='asc:{}'.format(field_name)) return c.url_generator(sort='asc:{}'.format(field_name)) %> %def> <%def name="main()">
${_('Query Language examples')}