1 <% content_for :head do %>
2 <%= javascript_include_tag "index" %>
5 <% content_for :content do %>
7 <%= form_tag url_for(:controller => :geocoder, :action => :search), :id => "search_form" do %>
8 <%= submit_tag t('site.search.submit_text') %>
9 <div id='query_wrapper'>
10 <%= text_field_tag :query, params[:query],
11 :placeholder => t('site.search.search'),
12 :autofocus => "autofocus" %>
13 <%= link_to t('site.search.where_am_i'),
14 { :controller => :geocoder, :action => :description },
15 { :id => "describe_location", :title => t('site.search.where_am_i_title') } %>
19 <div id="sidebar_content">
20 <% if STATUS == :database_offline or STATUS == :api_offline %>
21 <p class="alert"><%= t 'layouts.osm_offline' %></p>
22 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
23 <p class="alert"><%= t 'layouts.osm_read_only' %></p>
26 <%= content_for :sidebar %>
32 <p><%= t 'site.index.js_1' %></p>
33 <p><%= t 'site.index.js_2' %></p>
40 <div id="map" tabindex="2">
43 <div id="attribution">
46 <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
47 <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
50 <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>