]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/map.html.erb
Don't autofocus search, fade out "Where am I?" on focus
[rails.git] / app / views / layouts / map.html.erb
index cedfdb9c2bf043daba9692564ecb9b9614db7602..7019224861b69bf76006196dec15971b663d7bdd 100644 (file)
@@ -1,11 +1,17 @@
+<% content_for :head do %>
+  <%= javascript_include_tag "index" %>
+<% end %>
+
 <% content_for :content do %>
   <div id="sidebar">
     <%= form_tag url_for(:controller => :geocoder, :action => :search), :id => "search_form" do %>
       <%= submit_tag t('site.search.submit_text') %>
       <div id='query_wrapper'>
         <%= text_field_tag :query, params[:query],
-                           :placeholder => t('site.search.search'),
-                           :autofocus => "autofocus" %>
+                           :placeholder => t('site.search.search') %>
+        <%= link_to t('site.search.where_am_i'),
+                    { :controller => :geocoder, :action => :description },
+                    { :id => "describe_location", :title => t('site.search.where_am_i_title') } %>
       </div>
     <% end %>