]> git.openstreetmap.org Git - rails.git/blob - app/views/site/index.html.erb
06516a16f200bbf9800da170b82fee07eec12761
[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   <% end -%>
9 <% end -%>
10
11 <% content_for :left_menu do %>
12   <li><h4><%= link_to t("site.key.map_key"), {:action => :key}, :id => "open_map_key", :title => t("site.key.map_key_tooltip") %></h4></li>
13 <% end %>
14
15 <%= render :partial => 'home_link' %>
16 <%= render :partial => 'sidebar' %>
17 <%= render :partial => 'search' %>
18
19 <noscript>
20   <div id="noscript">
21     <p><%= t 'site.index.js_1' %></p>
22     <p><%= t 'site.index.js_2' %></p>
23   </div>
24 </noscript>
25
26 <div id="map">
27   <div id="permalink">
28     <a href="/" id="permalinkanchor" class="geolink llz layers object"><%= t 'site.index.permalink' %></a>
29     <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a>
30     <%= link_to t("site.index.createnote"), notes_url(:format => :json),
31         :id => "createnoteanchor",
32         :data => { :minzoom => 12 },
33         :title => "javascripts.site.createnote_tooltip",
34         :class => "geolink"
35     %>  
36   </div>
37 </div>
38
39 <iframe id="linkloader" style="display: none">
40 </iframe>
41
42 <div id="attribution">
43   <table width="100%">
44     <tr>
45       <td class="attribution_license"><%= t'site.index.license.license_url' %></td>
46       <td class="attribution_project"><%= t'site.index.license.project_url' %></td>
47     </tr>
48     <tr>
49       <td colspan="2" class="attribution_notice"><%= t'site.index.license.copyright' %></td>
50     </tr>
51   </table>
52 </div>