From ca539cdce8fa37b47dfc9356fd6b038b40585934 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 26 Apr 2018 14:25:02 +0200 Subject: [PATCH] remove samples from search --- app/controllers/search_controller.rb | 7 ------- app/views/search/index.html.erb | 17 ----------------- 2 files changed, 24 deletions(-) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index f3b87e4e0..2e346334a 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -17,7 +17,6 @@ class SearchController < ApplicationController search_protocols if @search_category == :protocols search_steps if @search_category == :steps search_checklists if @search_category == :checklists - search_samples if @search_category == :samples if @search_category == :repositories && params[:repository] search_repository end @@ -254,12 +253,6 @@ class SearchController < ApplicationController @search_count = @checklist_search_count end - def search_samples - @sample_results = [] - @sample_results = search_by_name(Sample) if @sample_search_count > 0 - @search_count = @sample_search_count - end - def search_repository @repository = Repository.find_by_id(params[:repository]) render_403 unless can_read_team?(@repository.team) diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index b692eaa22..f4af835a4 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -170,20 +170,6 @@ <%= t'Checklists' %> -