]> git.openstreetmap.org Git - rails.git/blob - app/views/site/index.html.erb
Require index-only JS in index.js
[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.data_layer_name"), { :controller => :browse, :action => :start }, :id => "show_data" %></li>
8   <% end -%>
9 <% end -%>
10
11 <%= render :partial => 'home_link' %>
12 <%= render :partial => 'sidebar' %>
13 <%= render :partial => 'key' %>
14 <%= render :partial => 'search' %>
15
16 <noscript>
17   <div id="noscript">
18     <p><%= t 'site.index.js_1' %></p>
19     <p><%= t 'site.index.js_2' %></p>
20   </div>
21 </noscript>
22
23 <div id="map">
24   <div id="permalink">
25     <a href="/" id="permalinkanchor" class="geolink llz layers object"><%= t 'site.index.permalink' %></a>
26     <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a>
27   </div>
28 </div>
29
30 <iframe id="linkloader" style="display: none">
31 </iframe>
32
33 <div id="attribution">
34   <table width="100%">
35     <tr>
36       <td class="attribution_license"><%= t'site.index.license.license_url' %></td>
37       <td class="attribution_project"><%= t'site.index.license.project_url' %></td>
38     </tr>
39     <tr>
40       <td colspan="2" class="attribution_notice"><%= t'site.index.license.copyright' %></td>
41     </tr>
42   </table>
43 </div>