X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8f4ed911e094d359ed630f034b76e02bc8d51705..115d7ded8d6014a697682eea6efa8f96d5fd2bec:/app/views/site/index.html.erb?ds=sidebyside diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index fb8f4462e..4c954e6cb 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -4,6 +4,12 @@ <% end %> <% end %> +<% unless STATUS == :api_offline or STATUS == :database_offline -%> + <% content_for :editmenu do -%> +
  • <%= link_to_function(t('browse.start_rjs.data_layer_name'), 'showData()') %>
  • + <% end -%> +<% end -%> + <%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %> <%= render :partial => 'key' %> <%= render :partial => 'search' %> @@ -12,7 +18,6 @@

    <%= t 'site.index.js_1' %>

    <%= t 'site.index.js_2' %>

    -

    <%= t 'site.index.js_3' %>

    @@ -188,7 +193,7 @@ end handleResize(); } - function toggleData() { + function showData() { $.ajax({ url: "<%= url_for :controller => :browse, :action => :start %>" }); }