X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a37e1b8f7035bfac0e38f5b95ea643c601e1c9b1..82cf356d85154057f840c1b3b413f49a65599690:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 8c5bd8b80..3391a102b 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,85 +1,60 @@ -<% content_for "optionals" do %> +<% content_for :optionals do %>
<%= t 'site.search.where_am_i' %>

<%= t 'site.search.search' %>

- <% form_remote_tag(:before => "setSearchViewbox()", - :loading => "startSearch()", - :complete => "endSearch()", - :url => { :controller => :geocoder, :action => :search }, - :html => { :id => "search_form", :method => "get", :action => url_for(:action => "index") }) do %> + <%= form_tag "#", :id => "search_form" do %> <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %> <%= submit_tag t('site.search.submit_text') %> <% end %>

- <%= t 'site.search.search_help' %> + <%= raw(t 'site.search.search_help') %>

<% end %>