]> git.openstreetmap.org Git - rails.git/blob - app/views/site/index.html.erb
194787ce0f52ce21c93f6d937a7edcca6dc638d2
[rails.git] / app / views / site / index.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "index" %>
3 <% end %>
4
5 <% unless STATUS == :api_offline or STATUS == :database_offline -%>
6   <% content_for :editmenu do -%>
7     <li><%= link_to t("browse.start_rjs.notes_layer_name"), notes_url(:format => :json), :id => "show_notes" %></li>
8     <li><%= link_to t("browse.start_rjs.data_layer_name"), { :controller => :browse, :action => :start }, :id => "show_data" %></li>
9   <% end -%>
10 <% end -%>
11
12 <% content_for :left_menu do %>
13   <li><%= link_to t("site.key.map_key"), {:action => :key}, :id => "open_map_key", :title => t("site.key.map_key_tooltip") %></li>
14 <% end %>
15
16 <%= render :partial => 'home_link' %>
17 <%= render :partial => 'sidebar' %>
18 <%= render :partial => 'search' %>
19
20 <noscript>
21   <div id="noscript">
22     <p><%= t 'site.index.js_1' %></p>
23     <p><%= t 'site.index.js_2' %></p>
24   </div>
25 </noscript>
26
27 <div id="map">
28   <div id="permalink">
29     <a href="/" id="permalinkanchor" class="geolink llz layers object"><%= t 'site.index.permalink' %></a>
30     <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a>
31     <a href="#" id="createnoteanchor">Report a problem</a>      
32   </div>
33 </div>
34
35 <iframe id="linkloader" style="display: none">
36 </iframe>
37
38 <div id="attribution">
39   <table width="100%">
40     <tr>
41       <td class="attribution_license"><%= t'site.index.license.license_url' %></td>
42       <td class="attribution_project"><%= t'site.index.license.project_url' %></td>
43     </tr>
44     <tr>
45       <td colspan="2" class="attribution_notice"><%= t'site.index.license.copyright' %></td>
46     </tr>
47   </table>
48 </div>
49
50 <div id="new-note" class="hidden"><%= render :partial => "notes/new" %></div>