X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6d25f54b0ba2e08f0a869963bf822e801da9f3f6..2d8feb6d79af2e96d83cf67ca0771116c9c0f11a:/app/views/layouts/_search.html.erb?ds=sidebyside diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index ab37f87b5..691e9fa72 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 %> +