X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7014cdb32cf0024e169204da49486048f08b1ca2..e338d1140884bb2bf3ed1b8fc85c890d0937ef8c:/app/views/site/_search.html.erb?ds=sidebyside diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 8c5bd8b80..9adc3dafe 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,85 +1,59 @@ -<% 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 %> - <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %> + <%= form_tag "#", :id => "search_form" do %> <%= submit_tag t('site.search.submit_text') %> + <%= text_field_tag :query, h(params[:query]), :tabindex => "1", :placeholder => t('site.search.search') %> <% end %>
-

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

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

<% end %>