X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6d25f54b0ba2e08f0a869963bf822e801da9f3f6..6c4b028232f5ad687c0def013b8de6a2b4013b4f:/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 %> +