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 <%= link_to t('site.search.where_am_i'),
13 { :controller => :geocoder, :action => :description },
14 { :id => "describe_location", :title => t('site.search.where_am_i_title') } %>
18 <div id="sidebar_content">
19 <% if STATUS == :database_offline or STATUS == :api_offline %>
20 <p class="alert"><%= t 'layouts.osm_offline' %></p>
21 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
22 <p class="alert"><%= t 'layouts.osm_read_only' %></p>
25 <%= content_for :sidebar %>
31 <p><%= t 'site.index.js_1' %></p>
32 <p><%= t 'site.index.js_2' %></p>
39 <div id="map" tabindex="2">
42 <div id="attribution">
45 <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
46 <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
49 <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>