]> git.openstreetmap.org Git - rails.git/blob - app/views/site/index.html.erb
ab1eaa1dc48833cee1625d00ca8eaa0db54c2004
[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     <%= link_to t("site.index.createnote"), notes_url,
32         :id => "createnoteanchor",
33         :data => { :minzoom => 12 },
34         :title => "javascripts.site.createnote_tooltip",
35         :class => "geolink"
36     %>  
37   </div>
38 </div>
39
40 <iframe id="linkloader" style="display: none">
41 </iframe>
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
55 <div id="new-note" class="hidden"><%= render :partial => "notes/new" %></div>