From 7a67c87def39f6f7218aff4ccc21f1cb45dfbb43 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Thu, 24 Apr 2008 22:10:26 +0000 Subject: [PATCH] ActionItem313: including full search options in search results page --- app/controllers/public/search_controller.rb | 6 +++++- app/views/search/_display_results.rhtml | 7 ++----- app/views/search/popup.rhtml | 45 +-------------------------------------------- public/stylesheets/search.css | 12 ++++++------ 4 files changed, 14 insertions(+), 56 deletions(-) diff --git a/app/controllers/public/search_controller.rb b/app/controllers/public/search_controller.rb index 2592d22..af2896f 100644 --- a/app/controllers/public/search_controller.rb +++ b/app/controllers/public/search_controller.rb @@ -5,11 +5,16 @@ class SearchController < ApplicationController before_filter :load_category before_filter :prepare_filter before_filter :check_search_whole_site + before_filter :load_search_assets no_design_blocks protected + def load_search_assets + @search_in = SEARCH_IN + end + def search(finder, query) finder.find_by_contents(query).sort_by do |hit| -(relevance_for(hit)) @@ -106,7 +111,6 @@ class SearchController < ApplicationController ####################################################### def popup - @search_in = SEARCH_IN render :action => 'popup', :layout => false end diff --git a/app/views/search/_display_results.rhtml b/app/views/search/_display_results.rhtml index 8a994e2..8bc0b71 100644 --- a/app/views/search/_display_results.rhtml +++ b/app/views/search/_display_results.rhtml @@ -1,9 +1,6 @@ -