]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/map.html.erb
55953f004e510269fb474a34b414c21f6d9caf6b
[rails.git] / app / views / layouts / map.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "index" %>
3 <% end %>
4
5 <% content_for :content do %>
6   <div id="sidebar">
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') } %>
16       </div>
17     <% end %>
18
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>
24       <% end %>
25
26       <%= content_for :sidebar %>
27     </div>
28   </div>
29
30   <noscript>
31     <div id="noscript">
32       <p><%= t 'site.index.js_1' %></p>
33       <p><%= t 'site.index.js_2' %></p>
34     </div>
35   </noscript>
36
37   <div id="map-ui">
38   </div>
39
40   <div id="map" tabindex="2">
41   </div>
42
43   <div id="attribution">
44     <table width="100%">
45       <tr>
46         <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
47         <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
48       </tr>
49       <tr>
50         <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>
51       </tr>
52     </table>
53   </div>
54 <% end %>