% params = OrbitHelper.params page = Page.where(url:params['url']).first enable_search_flag = false if page.respond_to?(:select_option_items) ModuleApp.all.select{|tmp| tmp.key.to_s=='event_news_mod'}.each do |modile_app| @show_option_items = modile_app.show_option_items rescue nil end page.select_option_items.each do |select_option_item| if !(@show_option_items.nil?) && select_option_item.field_name == @show_option_items.keys[1].to_s value = YAML.load(select_option_item.value) if value[I18n.locale] == t('event_news.yes') enable_search_flag = true end end end end %> <% if enable_search_flag %>
<% end %> <%= render_view %>