X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/aa52ebe6749ba1ea43030f173bfe2101d0f77dc3..5fcedc1bf4e548f4995de77cfa953504567a651c:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 31b8fcd70..15683daf3 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,23 +1,4 @@ - - -
- <% form_tag :controller => 'geocoder', :action => 'search' do %> - <%= text_field 'query', 'postcode' %> - <%= text_field 'query', 'place_name'%> - <%= submit_tag 'Search' %> - <% end %> - -
- Geolocation provided by npemap.org.uk, - geocoder.us, geocoder.ca and geonames.org -
-
- Enter a postcode or zip code, eg: SW15 6JH, 95472 -
-
- Enter a place-name, eg:Essen -
-
+<%= render :partial => 'search' %> <% if params['mlon'] and params['mlat'] %> <% marker = true %> @@ -26,10 +7,6 @@ <% lon = params['mlon'] %> <% lat = params['mlat'] %> <% zoom = params['zoom'] || '12' %> - <% elsif @user and params['lon'].nil? and params['lat'].nil? %> <% lon = @user.home_lon %> <% lat = @user.home_lat %> @@ -40,78 +17,44 @@ <% zoom = params['zoom'] || '4' %> <% end %> - - - - + +<%= javascript_include_tag 'map.js' %>