]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Don't show "Browse Map Data" when we're not on the map view
[rails.git] / app / views / site / index.html.erb
index 0c7b53203c88dd7817bb9b8114c5aeae19638da7..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' %>