From afd60bffe7a6e269b6da4566cea3c3ffbd12f354 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Tue, 26 Aug 2014 11:51:04 -0300 Subject: [PATCH] software_search: New view to make custom searchs for communities --- lib/mpog_software_plugin.rb | 12 ++++++++++++ views/search/search_community_filter.html.erb | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/mpog_software_plugin.rb b/lib/mpog_software_plugin.rb index d8fc558..d848767 100644 --- a/lib/mpog_software_plugin.rb +++ b/lib/mpog_software_plugin.rb @@ -341,6 +341,18 @@ class MpogSoftwarePlugin < Noosfero::Plugin ) end + def custom_community_search params + if params[:type] == "Community" + Community.search(params[:name]) + elsif params[:type] == "Software" + + elsif params[:type] == "Institution" + + else + + end + end + def controlled_vocabulary_transaction ControlledVocabulary.transaction do context.profile.software_info.controlled_vocabulary.update_attributes!(context.params[:controlled_vocabulary]) diff --git a/views/search/search_community_filter.html.erb b/views/search/search_community_filter.html.erb index e429705..abd5cbd 100644 --- a/views/search/search_community_filter.html.erb +++ b/views/search/search_community_filter.html.erb @@ -1,4 +1,4 @@ -
+
-- libgit2 0.21.2