]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/map.html.erb
Don't rely on body classes so much
[rails.git] / app / views / layouts / map.html.erb
index 55953f004e510269fb474a34b414c21f6d9caf6b..6e6caf95c6360cb98da014f713d9262a1af96f62 100644 (file)
@@ -2,14 +2,15 @@
   <%= javascript_include_tag "index" %>
 <% end %>
 
+<% content_for(:body_class) { "map-layout" } %>
+
 <% 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') } %>
@@ -23,7 +24,7 @@
         <p class="alert"><%= t 'layouts.osm_read_only' %></p>
       <% end %>
 
-      <%= content_for :sidebar %>
+      <%= yield %>
     </div>
   </div>
 
@@ -52,3 +53,5 @@
     </table>
   </div>
 <% end %>
+
+<%= render :template => 'layouts/site' %>