1 <% content_for :head do %>
2 <%= javascript_include_tag "index" %>
5 <% content_for(:body_class) { "map-layout" } %>
7 <% content_for :content do %>
9 <%= form_tag search_path, :id => "search_form" do %>
10 <%= submit_tag t('site.search.submit_text') %>
11 <div id='query_wrapper'>
12 <%= text_field_tag :query, params[:query],
13 :placeholder => t('site.search.search') %>
14 <%= link_to t('site.search.where_am_i'), '#', { :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="error"><%= t 'layouts.osm_offline' %></p>
21 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
22 <p class="error"><%= t 'layouts.osm_read_only' %></p>
25 <%= render :partial => "layouts/flash" %>
33 <p><%= t 'site.index.js_1' %></p>
34 <p><%= t 'site.index.js_2' %></p>
41 <div id="map" tabindex="2">
44 <div id="attribution">
47 <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
48 <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
51 <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>
57 <%= render :template => 'layouts/site' %>