]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Remove border for arrow
[rails.git] / app / views / site / index.html.erb
index fb8f4462e1bbd63f988a7182aed03eaa8ebdf02b..4c954e6cb4f135e745220acf3976278d16f69852 100644 (file)
@@ -4,6 +4,12 @@
   <% end %>
 <% end %>
 
+<% unless STATUS == :api_offline or STATUS == :database_offline -%>
+  <% content_for :editmenu do -%>
+    <li><%= link_to_function(t('browse.start_rjs.data_layer_name'), 'showData()') %></li>
+  <% end -%>
+<% end -%>
+
 <%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
 <%= render :partial => 'key' %>
 <%= render :partial => 'search' %>
@@ -12,7 +18,6 @@
   <div id="noscript">
     <p><%= t 'site.index.js_1' %></p>
     <p><%= t 'site.index.js_2' %></p>
-    <p><%= t 'site.index.js_3' %></p>
   </div>
 </noscript>
 
@@ -188,7 +193,7 @@ end
     handleResize();
   }
 
-  function toggleData() {
+  function showData() {
     $.ajax({ url: "<%= url_for :controller => :browse, :action => :start %>" });
   }