]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/map.html.erb
Restore "Where am I?"
[rails.git] / app / views / layouts / map.html.erb
index cedfdb9c2bf043daba9692564ecb9b9614db7602..55953f004e510269fb474a34b414c21f6d9caf6b 100644 (file)
@@ -1,3 +1,7 @@
+<% 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 %>
@@ -6,6 +10,9 @@
         <%= text_field_tag :query, params[:query],
                            :placeholder => t('site.search.search'),
                            :autofocus => "autofocus" %>
+        <%= 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 %>