X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6d25f54b0ba2e08f0a869963bf822e801da9f3f6..22160b445fefecfc05df263ebeccc1d090c1a9f1:/app/views/layouts/_search.html.erb diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index ab37f87b5..36e1a7a92 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -1,14 +1,20 @@ +<% search_query = if params[:query] + params[:query] + elsif params[:lat] && params[:lon] + "#{params[:lat]}, #{params[:lon]}" + end %> +