X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6072618f473b6faef9771a2ed51e7c054917b849..434e603cd6ab73ac37b2919c89c09bfbf6e8fe62:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 0c7b53203..877bc1771 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -1,10 +1,16 @@ <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %> <% content_for :greeting do %> - <%= link_to_function t('layouts.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 15)", { :title => t('layouts.home_tooltip') } %> | + <%= link_to t("layouts.home"), "#", :class => "set_position", :data => { :lat => @user.home_lat, :lon => @user.home_lon, :zoom => 15 }, :title => t("layouts.home_tooltip") %> | <% end %> <% end %> -<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %> +<% unless STATUS == :api_offline or STATUS == :database_offline -%> + <% content_for :editmenu do -%> +
  • <%= link_to t("browse.start_rjs.data_layer_name"), { :controller => :browse, :action => :start }, :id => "show_data" %>
  • + <% end -%> +<% end -%> + +<%= render :partial => 'sidebar' %> <%= render :partial => 'key' %> <%= render :partial => 'search' %> @@ -119,17 +125,12 @@ else end %> -<%= javascript_include_tag 'openlayers.js' %> -<%= javascript_include_tag 'map.js' %> - <%= render :partial => 'resize' %>