diff options
author | Ilya Baryshev <baryshev@gmail.com> | 2012-10-16 23:05:11 +0400 |
---|---|---|
committer | Ilya Baryshev <baryshev@gmail.com> | 2012-10-16 23:05:11 +0400 |
commit | e6524a919ee4c92d82518c2520d5c0cabc32eb47 (patch) | |
tree | 483060d8211e80e73ac19ccab3ef86deb8f71fe9 /app/views/search | |
parent | db3d90cbcb41c5b9a62998b185c90c10f9d03968 (diff) | |
download | gitlab-ce-e6524a919ee4c92d82518c2520d5c0cabc32eb47.tar.gz |
Wiki search
Very basic, using LIKE, and no search snippets.
Diffstat (limited to 'app/views/search')
-rw-r--r-- | app/views/search/show.html.haml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/app/views/search/show.html.haml b/app/views/search/show.html.haml index d85c24ec105..0d5f545850a 100644 --- a/app/views/search/show.html.haml +++ b/app/views/search/show.html.haml @@ -9,7 +9,7 @@ %br %h3 Search results - %small (#{@projects.count + @merge_requests.count + @issues.count}) + %small (#{@projects.count + @merge_requests.count + @issues.count + @wiki_pages.count}) %hr .search_results .row @@ -69,6 +69,23 @@ %tr %td %h4.nothing_here_message No Issues + .span6 + %table + %thead + %tr + %th Wiki + %tbody + - @wiki_pages.each do |wiki_page| + %tr + %td + = link_to project_wiki_path(wiki_page.project, wiki_page) do + %strong.term= truncate wiki_page.title, length: 40 + %strong.right + %span.label= wiki_page.project.name + - if @wiki_pages.blank? + %tr + %td + %h4.nothing_here_message No wiki pages :javascript $(function() { $(".search_results .term").highlight("#{params[:search]}"); |