<% # encoding: utf-8 #-- # Copyright (C) 2012 Gitorious AS # Copyright (C) 2009 Fabio Akita # Copyright (C) 2008 Johan Sørensen # Copyright (C) 2008 Tor Arne Vestbø # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %> <% @page_title = @search.blank? ? t("views.searches.search") : t("views.searches.page_title", :term => h(params[:q])) -%>

<%= @page_title -%>

<% if @results -%>

<%= t("views.searches.found", :count => @total_entries, :time => @all_results.query_time) %>

<% end -%> <%= render :partial => "search_box", :locals => {:hide_tips => false} -%>
<% if @results -%> <% if @results.empty? -%>

<%= t("views.searches.no_results", :term => h(force_utf8(params[:q]))) %>

<% else -%> <% @results.each do |result| -%>
<%= render :partial => "result", :object => presenter(result) -%>
<% end -%> <%= render_pagination_links (@results) -%> <% end -%> <% end -%>
<%= content_for :sidebar do -%>

Tips for searching

Any combination of the following keys can be used to narrow down the search results, simply type key:text into the search field to search for text within the scope of the key described below:

    Projects

  • @title Project title
  • @description Project description
  • @slug Project slug
  • @category Project label
  • @user Project creator username

    Repositories

  • @name Repository name
  • @description Repository description

    Merge Requests

  • @proposal Merge request proposal body
  • @proposed_by Merge request creator username
  • @status Merge request status
<% end %>